A family of Microsoft relational database management systems designed for ease of use.
You will have to use the form's error event to trap the error.
Private Sub Form_Error(DataErr As Integer, Response As Integer)
Dim x As String
Debug.Print DataErr
x = Me.ActiveControl.Name
If x = "TheDate" And DataErr = 2113 Then
Response = acDataErrContinue
MsgBox "Invalid date in TheDate entry."
End If
End Sub
John Spencer Access MVP 2002-2005, 2007-2010 The Hilltop Institute University of Maryland Baltimore County