Import File Dialog Box

J

John G

How would I get the Import File Dialog Box to open (this
is the dialog box in which you choose the file you want to
import, then the import wizard shows up) when a command
button is clicked (in other words, what is the code that
will automatically bring up this dialog box)?
 
A

Allen Browne

Best way is the code in this link:
http://www.mvps.org/access/api/api0001.htm

If you are using Access 2002, you can use the FileDialog object instead.
However, this requires a reference to the Office library, doesn't work with
SaveAs (even though it offers the option), and doesn't work in an MDE or
runtime version, so the API call is infinitely better.
 
A

Allen Browne

Best way is the code in this link:
http://www.mvps.org/access/api/api0001.htm

If you are using Access 2002, you can use the FileDialog object instead.
However, this requires a reference to the Office library, doesn't work with
SaveAs (even though it offers the option), and doesn't work in an MDE or
runtime version, so the API call is infinitely better.
 

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

Top