Import Excel via button

S

Susan

I currently have a large report that I generate. I input
an Excel spreadsheet into Access 2000 and use a command
button to run it. I would like to automate this so the
user can run it. The users do not have permission to go
into the design (database window) and therefore cannot go
to File, Get External, Import. I looked under Macro's
optons and cannot find an Import command ---- and I do not
know VB/SQL to do coding.

Any help out there? Thank you.
 
K

Ken Snell

In a macro, you can use TransferSpreadsheet command to import a sheet from
an EXCEL file. It's explained in Help file. Post back if you have questionsn
about it. Note that you either will have to hardcode the sheet name and file
name and path into the action, or use InputBox to get the info from the
user.

If you want to allow the user the ability to navigate to the file using the
"Open File" window, you'll need to use VBA and special code to do that.
 

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