[orderID]
[CurrencyName]
The following code is to trap a duplicate index and replace default error message with a custom one.
PROBLEM: Although my custom error message appears, the default one also shows up.
Private Sub Form_Error(DataErr As Integer, Response As Integer)
Expand|Select|Wrap|Line Numbers
- Select Case
- 'code here
- Case DataErr = 3022 ‘ duplicate index error
- MsgBox "My custome error message", vbOKOnly + vbExclamation, stMsgTitle
- Response = acDataErrContinue
- End Select
- 'code here
- End Sub
Expand|Select|Wrap|Line Numbers
- Response = acDataErrContinue
How should be the code modified to prevent default error from displaying?
Thank you for hints.