Sorry, I was gone all day. Try:
Code:
Private Sub Form_Error(DataErr As Integer, Response As Integer)
Dim sMsg As String
If IsDate(dateBegin) Then
If IsDate(dateEnd) Then
sMsg = "Error No: " & lngErrNumber & vbCrLf & _
"Description: " & strErrDescription & vbCrLf & _
"An error has been encountered. Please contact Marisa."
MsgBox sMsg, vbOKOnly, "Error Encountered"
Response = acDataErrContinue
Else
MsgBox "An invalid date has been entered as the End Date. Please enter a valid date.", vbOKOnly, "Error Encountered"
Response = acDataErrContinue
End If
Else
MsgBox "An invalid date has been entered as the Begin Date. Please enter a valid date.", vbOKOnly, "Error Encountered"
Response = acDataErrContinue
End If
End Sub
You could also examine the incoming DataErr value and make decisions if you wanted to.