Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turning Off Required Field Message

Status
Not open for further replies.

CharlieT302

Instructor
Mar 17, 2005
406
US
Hi folks,

I have a form that uses a field whose "Required" property is set to "Yes." I would like to turn off Access's default error message and replace it with my own.

Where do I go to do that...which Event..?

thanks
 
Probably the forms on error event. Can't remember which number, but try just

[tt]msgbox dataerr[/tt]

within the event, then do something like

[tt]if (dataerr = <number you found>) then
msgbox "your custom message"
response = acdataerrcontinue
' last line tells access to not show default message
end if[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top