code for opening a report

stefanocps

Registered User.
Local time
Today, 16:59
Joined
Jan 31, 2019
Messages
175
hello i need to pen a report from a button
i use this
DoCmd.OpenReport "Report", acViewPreview, "Report"


i would like to open the report in the same format as when i actually open the report , not in the print preview mode
Hod o i do that?


thanks
 
Try using acViewReport instead of acViewPreview.
 
great!
thanks a lot!
 
Hi. You're welcome! Good luck with your project.
 

Users who are viewing this thread

Back
Top Bottom