path entry for users

cgshunter

New member
Local time
Today, 05:00
Joined
Jul 17, 2002
Messages
6
I'm trying to create a macro that will prompt a user for the path of a file he/she is attempting to import because there will be multiple users with files in different places using the database. Any suggestions?:cool:
 
Not sure if you can, easier to write it in code, at it's most basic level:

Code:
Dim sFileLocation as string

sFileLocation = InputBox("Enter File Location:")
DoCmd.TransferText acImportDelim, "Spec Name", "Table Name", sFileLocation

The transfertext line would depend on what you were trying to import. If you are unsure write a macro and then save it as a module and cut and paste the code, altering the sFilelocation part.

Hope this helps.
 
Macro

Works like a charm - Thanks a Gig. You're officially promoted to hero status.
 

Users who are viewing this thread

Back
Top Bottom