Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF-ELSE

Status
Not open for further replies.

bebig

Technical User
Oct 21, 2004
111
US
hi,..
I have a question about IF-ELSE
I want to see .tcl, htm, html, tar, txt file if Me.csvUpload doesn,t.
How can I start a code??
this is my code..
----------------------------
Private Sub Form_Load()

If Me.csvUpload Then
File1.Pattern = "*.csv" 'only *.csv
Me.Caption = "CSV File Upload"
Else
File1.Pattern = "*.tcl" 'only those files
'File1.Pattern = "*.txt" 'only those files
'File1.Pattern = "*.htm" 'only those files

End If


End Sub
---------------------
Thank you in advance
 
this one works.
File1.Pattern = "*.tcl;*.htm;*.html;*.jpeg;*.gif;*.swf;*.txt;*.pdf;*.css;*.xml;*.png;*.tar;*.tgz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top