G
Guest
I have coded error checking in the Before Update event, however, when the
user enters the wrong information, the error message displays correctly, but
the form closes. I have played with the Default View and Cycle properties,
but it still closes.
Any ideas ?
I have coded the following in the Before Update Event
If IsNull(Me.RptDir) Or LTrim(RTrim(Me.RptDir)) = "" Then
Me.RptDir.SetFocus
Cancel = MsgBox("You must enter a Report Directory.", vbCritical, "Data
Validation Failure")
End If
The relevent properties are currently set as follows:
Default View: Continuous Forms
Cycle: All Records
user enters the wrong information, the error message displays correctly, but
the form closes. I have played with the Default View and Cycle properties,
but it still closes.
Any ideas ?
I have coded the following in the Before Update Event
If IsNull(Me.RptDir) Or LTrim(RTrim(Me.RptDir)) = "" Then
Me.RptDir.SetFocus
Cancel = MsgBox("You must enter a Report Directory.", vbCritical, "Data
Validation Failure")
End If
The relevent properties are currently set as follows:
Default View: Continuous Forms
Cycle: All Records