G
Guest
Helo, I have a button on a form that brings up a pop up that has buttons to
bring up reports. My question is what can I add to the VBA code to close this
pop up when I run a button? all my reports run a query that asks for a date
range name ect. so I still want to be able to run that. The pop up will stay
ontop everything untill I close it and its getting anoying...
Here is one of the codes for one of the buttons on my pop up.
Private Sub Command86_Click()
On Error GoTo Err_Command86_Click
Dim stDocName As String
stDocName = "Individual Stats"
DoCmd.OpenReport stDocName, acPreview
Exit_Command86_Click:
Exit Sub
Err_Command86_Click:
MsgBox Err.Description
Resume Exit_Command86_Click
bring up reports. My question is what can I add to the VBA code to close this
pop up when I run a button? all my reports run a query that asks for a date
range name ect. so I still want to be able to run that. The pop up will stay
ontop everything untill I close it and its getting anoying...
Here is one of the codes for one of the buttons on my pop up.
Private Sub Command86_Click()
On Error GoTo Err_Command86_Click
Dim stDocName As String
stDocName = "Individual Stats"
DoCmd.OpenReport stDocName, acPreview
Exit_Command86_Click:
Exit Sub
Err_Command86_Click:
MsgBox Err.Description
Resume Exit_Command86_Click