"Analyse With Excel" code - I want it!!

G

Guest

Hi

I want to allow users to click a button and copy data from a background
table into Excel. How can I find the code that would achieve this?

Any help gratefully received.

Simon Jolley
 
S

SusanV

In the button's on click event:

DoCmd.OutputTo acOutputTable, "TableName", acFormatXLS,
"FilePathAndName.xls", -1
 

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