I have a form which displays a pile of info.
I want to have a 'Print' button which when pressed will print the info on the form using an underlying report template...WITHOUT displaying the report on screen first.
I can do this using the cmd "DoCmd.OpenReport stDocName, acNormal" but this doesn't bring up the print options box (to select page no., copies etc). If I use "sendkey (^ p)" to bring up the print options box the form will print and not the report.
Does anyone know how to bring up the print options box and then print the current info on screen using the underlying report?
Thanks, Dave
I want to have a 'Print' button which when pressed will print the info on the form using an underlying report template...WITHOUT displaying the report on screen first.
I can do this using the cmd "DoCmd.OpenReport stDocName, acNormal" but this doesn't bring up the print options box (to select page no., copies etc). If I use "sendkey (^ p)" to bring up the print options box the form will print and not the report.
Does anyone know how to bring up the print options box and then print the current info on screen using the underlying report?
Thanks, Dave