Specifying Open File location

davesmith202

Employee of Access World
Local time
Today, 09:48
Joined
Jul 20, 2001
Messages
522
I want to always have my Open File dialog box set to a certain folder. e.g. c:\databases\current. How can I modify the code below to achieve that?

Code:
strFilter = ahtAddFilterItem(strFilter, "csv Files (*.csv)", "*.csv")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an input file...", _
Flags:=ahtOFN_HIDEREADONLY)

Thanks,

Dave
 
yourfiledialogobject.initialfilename = "C:\etc"
 
How do I add that to the above code? Do I just add a comma and then add your line?
 

Users who are viewing this thread

Back
Top Bottom