phxsportz
Well-known Member
- Joined
- Jun 11, 2006
- Messages
- 1,985
I have code that allows the user to choose a Picture File to associate with a given record. The question I have is.. is there a way to choose mutliple file types in the FileFilter option ?
I've scoured the web for a breakdown on the proper syntax and can't seem to locate it anywhere.
Here's the code
What I would like to do is let them choose JPG's, but also include the option of choosing a .GIF as well..
Thanks for any help...
I've scoured the web for a breakdown on the proper syntax and can't seem to locate it anywhere.
Here's the code
Code:
Private Sub bt_browse_Click()
' Allows user to browse the computer for a picture file to be displayed
' While this file can reside anywhere it will be necessary for it to be present
' in the specified image directory that was entered in the Setup Worksheet
Dim FName As Variant
FName = Application.GetOpenFilename(FileFilter:="Pictures,*.jpg", Title:="Select a Picture", MultiSelect:=False)
If FName <> False Then
img_Liquor.Picture = LoadPicture(FName)
tb_image = LTrim(Mid(FName, 1 + InStrRev(FName, "\")))
End If
End Sub
Thanks for any help...
Last edited: