A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Substitude a error message with a MsgBox



 
 
Thread Tools Display Modes
  #1  
Old December 7th, 2006, 09:55 PM posted to microsoft.public.access.forms
erick-flores
external usenet poster
 
Posts: 88
Default Substitude a error message with a MsgBox

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

  #2  
Old December 8th, 2006, 03:41 AM posted to microsoft.public.access.forms
Van T. Dinh
external usenet poster
 
Posts: 1,048
Default Substitude a error message with a MsgBox

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.

--
HTH
Van T. Dinh
MVP (Access)



"erick-flores" wrote in message
oups.com...
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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.