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
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?
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
cant find it. The case is that i have a form thats opens-----Original Message-----
Hi, i think this subject has been covered before but i
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?