VBABeginner
New member
- Local time
- Yesterday, 23:40
- Joined
- Jul 22, 2010
- Messages
- 3
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!
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!