S
sandpking
How do I get the calling form to close after the user previews the
report. Thanks in advance.
I tried adding a docmd.close acform on the report's close event, but
it didn't work.
Here is the code on the button calling the report.
On Error GoTo Err_CloseImportForm_Click
DoCmd.OpenReport "Rpt_How_Error_Discovered", acViewPreview, acNormal
'DoCmd.Close ****** This command closed the report too quickly
***********
Exit_CloseImportForm_Click:
Exit Sub
Err_CloseImportForm_Click:
MsgBox Err.Description
Resume Exit_CloseImportForm_Click
report. Thanks in advance.
I tried adding a docmd.close acform on the report's close event, but
it didn't work.
Here is the code on the button calling the report.
On Error GoTo Err_CloseImportForm_Click
DoCmd.OpenReport "Rpt_How_Error_Discovered", acViewPreview, acNormal
'DoCmd.Close ****** This command closed the report too quickly
***********
Exit_CloseImportForm_Click:
Exit Sub
Err_CloseImportForm_Click:
MsgBox Err.Description
Resume Exit_CloseImportForm_Click