Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / December 2006

Tip: Looking for answers? Try searching our database.

Substitude a error message with a MsgBox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
erick-flores - 07 Dec 2006 21:55 GMT
Hello all

I am trying to make this 'error' message go away and display my own
MsgBox. I have set some of the fields in one of my tables to Required.
And when I am actually interacting in the form and i dont fill that
required field it popsup this 'error' message saying  "The field 'xxx'
cannot contain a Null value because the Required property for..." I
want this message to be substitude by my on MsgBox. How do I do that?

Thanks in advance
Van T. Dinh - 08 Dec 2006 03:41 GMT
Generally, you should use code in the Form_BeforeUpdate Event to perform all
data validation before actually trying to save the Record.

Check Access VB Help on the BeforeUpdate Event of the Form object. There is
a sample code in Help also.

Signature

HTH
Van T. Dinh
MVP (Access)

> Hello all
>
[quoted text clipped - 6 lines]
>
> Thanks in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.