Print open report

C

Chris

Try this

In the click event of each of your buttons that call
reports put the code ...

DoCmd.OpenForm "frmPrintPreviewCancelExport", , , , , , "rp
tReport1"

Change "rptReport1" to the report that you want to call

In the "open" event of frmPrintPreviewCancelExport place
the code

strDestReport = Me.OpenArgs

where strDestReport is a module level string variable.

Then in the click event of your "Print report" button
place

DoCmd.OpenReport strDestReport



-----Original Message-----
Hi, i think this subject has been covered before but i
cant find it. The case is that i have a form thats opens
together with my reports (as a pop up). On this form i
have some buttoms (print, cancel, export etc). How can i
get the print buttom to print whatever report that are
open in the database (im using the same form on all
report). Is this possible or should i create one form for
each report?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top