B
bw
After I close my report, the input form I'm using is apparently still open.
I know this, because default values on the form are set to my last
selection, and if I try to set the form property to hidden, Access tells me
I can't do that because the form is still open.
Can someone please explain what's going on? The following is my report
code:
Private Sub Report_Open(Cancel As Integer)
Dim strDocName As String
strDocName = "boxSeatsMailings"
blnOpening = True
DoCmd.OpenForm strDocName, , , , , acDialog
If Not (IsLoaded(strDocName)) Then
MsgBox "Report has been cancelled"
Cancel = True
Exit Sub
Else
blnOpening = False
DoCmd.SetWarnings False
DoCmd.Maximize
DoCmd.SetWarnings True
End If
End Sub
Private Sub Report_Close()
DoCmd.Close acForm, "boxSeatsMailing"
DoCmd.Restore
End Sub
I know this, because default values on the form are set to my last
selection, and if I try to set the form property to hidden, Access tells me
I can't do that because the form is still open.
Can someone please explain what's going on? The following is my report
code:
Private Sub Report_Open(Cancel As Integer)
Dim strDocName As String
strDocName = "boxSeatsMailings"
blnOpening = True
DoCmd.OpenForm strDocName, , , , , acDialog
If Not (IsLoaded(strDocName)) Then
MsgBox "Report has been cancelled"
Cancel = True
Exit Sub
Else
blnOpening = False
DoCmd.SetWarnings False
DoCmd.Maximize
DoCmd.SetWarnings True
End If
End Sub
Private Sub Report_Close()
DoCmd.Close acForm, "boxSeatsMailing"
DoCmd.Restore
End Sub