Publish a report to excel?

M

mike_mike

HI is it possible to publish a report to excel,

without showing the preview window ?


currently i go

DoCmd.OpenReport report, acPreview, ,
 
B

Baffee

Try using:

DoCmd.OutputTo acReport, "Acess ReportName", acFormatXLS, "Path/FileName.xls"
This will save it as an excel file with the name you enteted in the path you
specified..

If you want to save it and fire up Excel use:
DoCmd.OutputTo acReport, "Acess ReportName", acFormatXLS,
"Path/FileName.xls",True
 
M

mike_mike

ur a legend! I couldn't remember the command!

Baffee said:
Try using:

DoCmd.OutputTo acReport, "Acess ReportName", acFormatXLS, "Path/FileName.xls"
This will save it as an excel file with the name you enteted in the path you
specified..

If you want to save it and fire up Excel use:
DoCmd.OutputTo acReport, "Acess ReportName", acFormatXLS,
"Path/FileName.xls",True
 
A

a_ryan1972

This is exactly what I need to do, but I don't understand where to insert
this code.

Please help.

Thank you.
 
P

PieterLinden via AccessMonster.com

a_ryan1972 said:
This is exactly what I need to do, but I don't understand where to insert
this code.

Please help.

The click event of a button...
 

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