Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to export the report to excel file?

Status
Not open for further replies.

cin2002

Programmer
Mar 19, 2002
29
US
Can anyone help me? How to export the report to excel file from access form?
 
cin2002,

In the On_Click event of a command button, using the Expression Builder add the following code, replacing ReportName and FullPath:

DoCmd.OutputTo acReport, "ReportName", "MicrosoftExcel(*.xls)", "FullPath", False, ""
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top