I have a report that can be very very long, and I want to warn the user before it gets sent to the printer. Right now, I'm opening the report in preview mode and then bringing up the print dialog in code. I'd like to add a message box with the number of total pages before the print dialog comes up.
How do I get the total number of pages?
Thanks,
Sup
Code:
DoCmd.OpenReport "PMDetailAllTrades", acViewPreview
'add msgbox "this report is 'nnn' pages long"
DoCmd.RunCommand acCmdPrint
DoCmd.Close acReport, "PMDetailAllTrades"
How do I get the total number of pages?
Thanks,
Sup