Hide a From

The parameter form has to remain open until the report is done.
Brian
 
So I guess that means there is no code that one could add to the button on the form to execute after the button click to call the report, that would then close the form window...bummer.
 
I've never done it but how about closing the form from the report load event, tho' I don't know if that is too soon.

Brian
 
Like I said, Me.Visible = False and then just Close the form on the Reports UnloadEvent
 
I added the your line to the following existing code and it worked beautiful. Thank you.

Private Sub Command4_Click()
On Error GoTo Err_Command4_Click

Dim stDocName As String

stDocName = "Closed By Case"
DoCmd.OpenReport stDocName, acPreview
-->Me.Visible = False

Exit_Command4_Click:
Exit Sub

Err_Command4_Click:
MsgBox Err.Description
Resume Exit_Command4_Click

End Sub
 

Users who are viewing this thread

Back
Top Bottom