duplicate entry message

G

Guest

when i use command button to close a Form in data entry mode, it does not
display message in case of any duplicate entry. However, if I close the same
Form with cross button at the right top of thr form, it display message of
duplicate entry. I want to display the same message with commad button
 
A

Allen Browne

Yes, this is a very old bug that affects all versions of Access. As you
found, Access silently discards your record, with no notification at all, if
the record cannot be saved when you use the Close action/method.

The workaround is to explicitly save the record before you close. Details in
this article:
Losing data when you close a form
at:
http://allenbrowne.com/bug-01.html
 

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