Change message on dialog box (1 Viewer)

vent

Registered User.
Local time
Today, 01:24
Joined
May 5, 2017
Messages
160
Hi everyone

Just out of curiosity, is it possible to change the text in the prompt message? I have a form where users fill things out and I set this particular field as required. If the user forgets to add a value, they are prompted with the message "You must enter a value in the 'tblAgencyInformationNew.Agency' field. I was wondering is there way I could simply remove the tblAgencyInformationNew part of this message?

Thank you.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 13:24
Joined
May 7, 2009
Messages
19,229
use the Form's Error Event, eg:


Code:
Private Sub Form_Error(DataErr As Integer, Response As Integer)
    MsgBox Err.Number & ": " & Err.Description
    Response = acDataErrContinue
End Sub
 

Users who are viewing this thread

Top Bottom