Windows dialog box

polina

Registered User.
Local time
Today, 19:35
Joined
Aug 21, 2002
Messages
100
Hi,

In order for me to import the excel file, I have to take the exact path from the user (which I do using a text box)

txtPath.SetFocus
path = txtPath.Text
DoCmd.TransferSpreadsheet acImport, , "1", path, True


But that is of course a headache for the user to type the whole path into the text box.

How could I open a windows dialog box so the user would browse for the file?

Please help.

Thanks
 

Users who are viewing this thread

Back
Top Bottom