error when field last name is 'empty'

G

Guest

Hallo,

I am using a code from the book - Building Microsoft Access applications -
to search for duplicate names when adding a new contact. Last week it
suddenly returned a specific error. It took me some time to find out that the
code behaved that way in my database because the field last name was empty in
one of the records. I thought I might use a code to return a message when
someone leave the field empty by accident. But this does not solve the
problem, is there a better solution? Thanks in advance for any help!

Srwe
 
S

SusanV

Hi David,

Set that field's Required property to Yes in the table Design View and users
will not be able to save a record without entering data in that field.
 
G

Guest

Thank you for your helpful and quick reply!

SusanV said:
Hi David,

Set that field's Required property to Yes in the table Design View and users
will not be able to save a record without entering data in that field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top