Hi,
Is there any way to open a report in print preview and have the form that opened it be reopened? I've puzzled over this for hours with no success. I can open the report in print preview with no problem, but none of the report events seems to fire when the print or close options are clicked from the print preview. Is there any way back to the form that called the report?
The code I use to call the report is:
DoCmd.Save acForm, "frmInvoice"
Me.Visible = False
DoCmd.OpenReport "rptInvoice", acViewPreview
DoCmd.RunCommand acCmdPrintPreview:
I tried adding DoCmd.OpenForm "frmInvoice" but the print preview closed as soon as it opened.
You can call me "Stumped Again"
If anyone can help me, I'd really appreciate it.
Is there any way to open a report in print preview and have the form that opened it be reopened? I've puzzled over this for hours with no success. I can open the report in print preview with no problem, but none of the report events seems to fire when the print or close options are clicked from the print preview. Is there any way back to the form that called the report?
The code I use to call the report is:
DoCmd.Save acForm, "frmInvoice"
Me.Visible = False
DoCmd.OpenReport "rptInvoice", acViewPreview
DoCmd.RunCommand acCmdPrintPreview:
I tried adding DoCmd.OpenForm "frmInvoice" but the print preview closed as soon as it opened.
You can call me "Stumped Again"
If anyone can help me, I'd really appreciate it.