Run-time error 2101: The setting you entered isn't valid for this property.
I want it to be replaced with a custom error message.
Is this the right code? It is not working for me.
Private Sub Form_Error(DataErr As Integer, Response As Integer)
Select Case DataErr
Case 2101
MsgBox "MY CUSTOM MESSAGE"
Response = acDataErrContinue
End Select
Active Control.Undo
End Sub