Import Function to a Command Button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I wan to be able to click on a command button and have it open up to look
for a txt file and once the file is selected, I want it to upload into an
existing table in access.

Any help would be appreciated.

Thanks!!!!
 
For the Windows File Dialog box go to
http://www.mvps.org/access/api/api0001.htm
Store the result(Filename) in the form

Once you have selected the file you can have a macro import using the
Transfer Text action.
for the file name use
=[Forms]![NameOfForm]![NameOfTextbox]

You will need to do the import once manually to create an import
specification which is used in the Transfer Text action in the macro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top