Export Access Table to Excel in different sheet

G

Guest

I had a Access mdb with 2 tables and hope to export to Excel (export.xls)
which has 2 sheets for different tables (table1, table2)

I use "Docmd.outputto" command but it also allow to export one table, How
can I do it?

DoCmd.OutputTo acOutputTable, "table1", "MicrosoftExcel(*.xls)",
"export.xls", True, ""


Thanks for help!
 

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