Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: custom error messagr


Message #1 by "Howard Stone" <ququmber@h...> on Tue, 30 Apr 2002 03:20:13
I get this error whenever I update a form. 

Index or primary key cannot contain a null value 
What event procedure should I use to attach an error trap add my own 
custom message.?







Message #2 by "Leo Scott" <leoscott@c...> on Mon, 29 Apr 2002 19:25:36 -0700
If it is a bound form use the Form_BeforeUpdate event and in the event do

Cancel = True

in addition to giving the user an error message.  This will prevent the from
from trying to update the table.  You should probably SetFocus to the
control that needs to have the non Null data.

|-----Original Message-----
|From: Howard Stone [mailto:ququmber@h...]
|Sent: Tuesday, April 30, 2002 3:20 AM
|To: Access
|Subject: [access] custom error messagr
|
|
|
|I get this error whenever I update a form.
|
|Index or primary key cannot contain a null value
|What event procedure should I use to attach an error trap add my own
|custom message.?
|
|
|
|
|
|
|
|


  Return to Index