Understanding Delete

G

Guest

I have a table with 3 fields making up primary key. If someone clicks the
new record button and then decides they want to scroll to a previous record,
they get the 'Index or primary key cannot contain a null value' message. I
assume that's because in order to scroll to a previous message the one they
just created needs to be saved firt and one or more of the key fields is
null. Correct?

If, at that point then, a user decides they would like to delete the
incomplete record, they click Edit/Delete and still get the 'Index or primary
key cannot contain a null value message'. How can they delete a record that
doesn't have one of the primary key fields completed? Thanks.
 
R

Rick Brandt

Alex said:
I have a table with 3 fields making up primary key. If someone
clicks the new record button and then decides they want to scroll to
a previous record, they get the 'Index or primary key cannot contain
a null value' message. I assume that's because in order to scroll to
a previous message the one they just created needs to be saved firt
and one or more of the key fields is null. Correct?

If, at that point then, a user decides they would like to delete the
incomplete record, they click Edit/Delete and still get the 'Index or
primary key cannot contain a null value message'. How can they
delete a record that doesn't have one of the primary key fields
completed? Thanks.

You can't delete a recrd that was never saved in the first place. Have your
users press Escape a couple times when they want to "cancel" the record that
they started, but never saved.
 
G

Guest

All very helpful - thank you!

Rick Brandt said:
You can't delete a recrd that was never saved in the first place. Have your
users press Escape a couple times when they want to "cancel" the record that
they started, but never saved.
 

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