N
NevilleT
I am trying to supress a 2105 error message that occurs if I cancel an open
form event.
I have a form (form 1) that opens another form (form 2). If certain
conditions are not met in the second form open event, the open is cancelled.
A third form (Form 3) is opened instead.
Form 1
strDocName = "frmMSP"
DoCmd.OpenForm (strDocName)
Form 2 (frmMSP)
' run a query to check some data including a field called UseMSP
If rst!UseMSP = False Then
subOpenForms ("frmGanttChart")
Cancel = True
GoTo Exit_Form_Open
End If
Exit_Form_Open:
On Error GoTo 0
Exit Sub
form event.
I have a form (form 1) that opens another form (form 2). If certain
conditions are not met in the second form open event, the open is cancelled.
A third form (Form 3) is opened instead.
Form 1
strDocName = "frmMSP"
DoCmd.OpenForm (strDocName)
Form 2 (frmMSP)
' run a query to check some data including a field called UseMSP
If rst!UseMSP = False Then
subOpenForms ("frmGanttChart")
Cancel = True
GoTo Exit_Form_Open
End If
Exit_Form_Open:
On Error GoTo 0
Exit Sub