CSV Import Button

davidjearly

Registered User.
Local time
Today, 12:07
Joined
Apr 30, 2009
Messages
40
Hi,

I have the a command button on a form which has the following code on click:

Code:
DoCmd.TransferText acImportDelim, , "Patients", _
     "T:\Practice Recovery Plans\data\import.csv", -1

However, what I would like to have is to be presented with a dialog box asking me to choose a csv file to import when I click the button, rather than having to name the file 'import.csv' and stick it in that location.

Any help would be appreciated!

David
 

Users who are viewing this thread

Back
Top Bottom