bill201
asked on
how to open a FileDialog in microsoft access 2013 on a specific location
hi
i use this code on a form to open a file dialog
how can i set that the dialog box will show a specific location for example it's will show files on the location "c:\example\"
i use this code on a form to open a file dialog
Function selectFile()
Dim fd As FileDialog, fileName As String
Set fd = Application.FileDialog(msoFileDialogFilePicker)
'disable multiselect for one file selection
fd.AllowMultiSelect = False
If fd.Show = True Then
fileName = fd.SelectedItems(1)
End If
'clear file dialog
Set fd = Nothing
'Return File name and path
selectFile = fileName
End Function
how can i set that the dialog box will show a specific location for example it's will show files on the location "c:\example\"
ASKER
in what line should i put this line of code?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks a lot for every one
ChDir CreateObject("Wscript.Shel
Kevin