Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question regarding a macro using TransferDatabase 1

Status
Not open for further replies.

djbjr

Programmer
Dec 7, 2001
106
US
Hopefully I am in the right forum, I apoligize if I am not.

I created a Macro which loads a table using the TransferDatabase method and it works fine.

When I run the Macro, a DBF file is grabbed and loaded into in Access table and then an append query loads the final table.

My question is, can I set it up so it prompts the user to select the source file? I need to load this file regularly and the file name changes.

Thanks in advance.
 
Convert your macro to VBA and then have a look at the InputBox function or the FileDialog object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks so much it worked, its like I wrote VBA!

So now I just need to figure out how to make it browse for the file when the button is clicked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top