P
Pamela
I have a control that needs a specific 5 digit number to be entered. I have
an input mask on this control requiring the 5 numbers but if the user doesn't
enter it correctly the system gives a very non-user-friendly error message.
I'd like to replace this message explaining again that it needs to be the
full 5 digit number. I tried entering it in AfterUpdate and OnDirty events
but it seems that the system's Error handling fires first and I still get
their error message. From where does this fire that I can replace it?? I
don't have any other code attached to this control and most other posts here
speak to handling the errors w/ other code. Just in case you need it, here's
my code and it may well need tweaking!
On Error GoTo AssnNumberErr
AssnNumberErr:
If Err.Number Then
MsgBox "Please enter the 5 digit CAP Number"
End If
Thanks so much!
Pamela
an input mask on this control requiring the 5 numbers but if the user doesn't
enter it correctly the system gives a very non-user-friendly error message.
I'd like to replace this message explaining again that it needs to be the
full 5 digit number. I tried entering it in AfterUpdate and OnDirty events
but it seems that the system's Error handling fires first and I still get
their error message. From where does this fire that I can replace it?? I
don't have any other code attached to this control and most other posts here
speak to handling the errors w/ other code. Just in case you need it, here's
my code and it may well need tweaking!
On Error GoTo AssnNumberErr
AssnNumberErr:
If Err.Number Then
MsgBox "Please enter the 5 digit CAP Number"
End If
Thanks so much!
Pamela