Command Button to start import

T

Tony Williams

Can anyone provide me with the code I would need to put behind a commnad
button on a form to start the import spreadsheet wizard?
Thanks
Tony
 
C

Chris O'C via AccessMonster.com

Use this:

DoCmd.RunCommand acCmdImport

When the import dialog comes up, change the "files of type" to "Microsoft
Excel (*.xls)" then choose your xls file to import.

Chris
 
T

Tony Williams

Thanks for such a quick response Chris. That worked just fine. Is there
anyway I can force it to show Excel files only in the files to open box?
Cheers
Tony
PS Happy New Year!
 
C

Chris O'C via AccessMonster.com

Sorry, there's no built in command.

Chris


Tony said:
Thanks for such a quick response Chris. That worked just fine. Is there
anyway I can force it to show Excel files only in the files to open box?
 

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