Dick7Access
Dick S
- Local time
- Today, 12:00
- Joined
- Jun 9, 2009
- Messages
- 4,321
I have a button that goes to the previous record on my form as I can’t rely on the people doing data entry knowing how to find the little arrows at the bottom. If they get to the first record and try to go back any further the little arrow greys out. My button pulls up the error message “You can’t go to that specified record.” I want to change that and be more specific. I googled it and came up with the following on this forum back in 2011.
Private Sub Form_Error(DataErr As Integer, Response As Integer)
Const INPUTMASK_VIOLATION = 2279
If DataErr = INPUTMASK_VIOLATION Then
MsgBox "There was an input mask violation!"
Response = acDataErrContinue
End If
End Sub
Now my problem is not an input violation but I don’t know now what my violation is called so I can’t google it any further. Anybody know what I should be googleing?
Private Sub Form_Error(DataErr As Integer, Response As Integer)
Const INPUTMASK_VIOLATION = 2279
If DataErr = INPUTMASK_VIOLATION Then
MsgBox "There was an input mask violation!"
Response = acDataErrContinue
End If
End Sub
Now my problem is not an input violation but I don’t know now what my violation is called so I can’t google it any further. Anybody know what I should be googleing?