VBABeginner
New member
- Local time
- Yesterday, 21:51
- Joined
- Jul 22, 2010
- Messages
- 3
I posted this to another section and then noticed this on dealing with VBA so am repeating it here. I apologize for the duplication. Problem below:
---------------------------------------------------------------------
I am new to this forum, and new to VBA programming in MS Access. I am trying to print a report in duplex without getting way over my head in complicated coding and not having much success. I have tried:
DoCmd.OpenReport strReport acViewPreview
DoCmd.RunCommand acCmdPrint
which works but isn't practical as users are printing entire books consisting of many reports and the dialogue box pops up for each report. I guess it could work if anyone knows how to supress it after the first time.
Alternatively, I have tried:
DoCmd.OpenReport strReport acViewDesign, , , acHidden
Application.Printer.Duplex = acPRDPVertical
DoCmd.OpenReport strReport acViewNormal
which seems like it SHOULD work, but doesn't.
I have read until I'm bleary-eyed...does anyone have any suggestions?
Thanks so much!
---------------------------------------------------------------------
I am new to this forum, and new to VBA programming in MS Access. I am trying to print a report in duplex without getting way over my head in complicated coding and not having much success. I have tried:
DoCmd.OpenReport strReport acViewPreview
DoCmd.RunCommand acCmdPrint
which works but isn't practical as users are printing entire books consisting of many reports and the dialogue box pops up for each report. I guess it could work if anyone knows how to supress it after the first time.
Alternatively, I have tried:
DoCmd.OpenReport strReport acViewDesign, , , acHidden
Application.Printer.Duplex = acPRDPVertical
DoCmd.OpenReport strReport acViewNormal
which seems like it SHOULD work, but doesn't.
I have read until I'm bleary-eyed...does anyone have any suggestions?
Thanks so much!