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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perform a search on TransferText

Status
Not open for further replies.

cedar

Technical User
Mar 29, 2001
12
US
Hi all-
I have this code attached to a command button.....

DoCmd.TransferText acImportDelim, "Test Import Specification", "My Table", "C:\My folder\Myfile"

This automatically updates my table with the table in the specified folder. I would rather set up a system where the user could type in a file name, and a search would be done for the the specific file instead. Make sense?
Any ideas?
thanks
 
You could use the CommonDialog control's ShowOpen method to create the option of selecting the filename that you wanted.

Once the file name is select you could then use the Forms syntax to pass in the filename to the command as follows:

DoCmd.TransferText acImportDelim, "Test Import Specification", "My Table",&"&Me![filename field]&"

I hope this helps.

Steve

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top