Export Access Report to Excel (Acces 97)?

teabags

Registered User.
Local time
Yesterday, 19:02
Joined
Jun 29, 2006
Messages
21
How do export an Access report to excel?
 
Report to Excel

Try this Code from a Button :-

DoCmd.OutputTo acReport, "ReportName", "MicrosoftExcel(*.xls)", "C:\TEST.XLS", False, ""
 
Hi, bigstav, I usually distribute my access to several users. If I want to export the report to Excel to user's desktop, how to set up the path for that? Thank you for your help.
 
Replace
Code:
"C:\TEST.XLS"
with
Code:
Environ("Userprofile") & "\Desktop"
(assuming you're using an English-language version of Windows)
 

Users who are viewing this thread

Back
Top Bottom