Connecting Tech Pros Worldwide Help | Site Map

Changing "Index or Primary Key cannot contain a null value" message

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 03:00 PM
JBrow
Guest
 
Posts: n/a
Default Changing "Index or Primary Key cannot contain a null value" message

Hi everyone,

I have a form with several fields. One represents the primary key. If you
leave it blank and try to save the record, the forms displays the following
error message - "Index or Primary Key cannot contain a null value". I
understand why it is doing this, but I'm wondering if I can program a
friendlier message. Any help would be great.

Many Thanks!



  #2  
Old November 12th, 2005, 03:00 PM
TC
Guest
 
Posts: n/a
Default Re: Changing "Index or Primary Key cannot contain a null value" message

Check out the Form_Error event.

HTH,
TC


"JBrow" <j@jdp.coj> wrote in message
news:5Hgpb.65196$mZ5.390750@attbi_s54...[color=blue]
> Hi everyone,
>
> I have a form with several fields. One represents the primary key. If[/color]
you[color=blue]
> leave it blank and try to save the record, the forms displays the[/color]
following[color=blue]
> error message - "Index or Primary Key cannot contain a null value". I
> understand why it is doing this, but I'm wondering if I can program a
> friendlier message. Any help would be great.
>
> Many Thanks!
>
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.