S
Sidz
Hi,
I have this error coding in my form:
Private Sub Form_Error(DataErr As Integer, Response As Integer)
If DataErr = 3201 Then
Response = acDataErrContinue ' Don't display the default message
MsgBox "Please fill in all the fields" ' Display your own message
Else
If DataErr = 3317 Then
Response = acDataErrContinue ' Don't display the default message
MsgBox "Please fill in all the date field" ' Display your own message
Else
MsgBox "Error#: " & DataErr
Response = acDataErrDisplay ' Display Default message
End If
End Sub
However, in one of the date/time controls in this form, there is a table
level validation rule. If I violate that rule, the error message "3317" is
shown. For some reason, my custom error message for that error in the above
code, is ignored!!
I can't move the validation rule to the form level, since this control is
updated by the value from a calender control. If I type in the value for the
date/time field, then the error following error message is displayed:
Block If End If
!!??? I am totally confused! Please help
I have this error coding in my form:
Private Sub Form_Error(DataErr As Integer, Response As Integer)
If DataErr = 3201 Then
Response = acDataErrContinue ' Don't display the default message
MsgBox "Please fill in all the fields" ' Display your own message
Else
If DataErr = 3317 Then
Response = acDataErrContinue ' Don't display the default message
MsgBox "Please fill in all the date field" ' Display your own message
Else
MsgBox "Error#: " & DataErr
Response = acDataErrDisplay ' Display Default message
End If
End Sub
However, in one of the date/time controls in this form, there is a table
level validation rule. If I violate that rule, the error message "3317" is
shown. For some reason, my custom error message for that error in the above
code, is ignored!!
I can't move the validation rule to the form level, since this control is
updated by the value from a calender control. If I type in the value for the
date/time field, then the error following error message is displayed:
Block If End If
!!??? I am totally confused! Please help