Null error

M

Mark Hubbard

I have a table joined to another table with three indexed fields. The
second table also has its primary key. I used a wizard to make a form
for the second table, and receive an error stating that a primary key
cannot be a null value when I try to enter data. However, when I use the
tables to enter data, I do not get this error. Built in help menus are
useless, I am sure I must be missing someting simple. Thanks in advance.
 
P

Pavel Romashkin

It looks like your primary key is not an autonumber. If so, your form
needs to have a piece of code in its Current event to populate the PK
before the new record can be inserted.
I'd say that Help is not useless, it is just that it is impossible to
include every detail into Help.
Good luck,
Pavel
 

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