The best solution is to explicitly save the record before your code tries to
do anything that requires a save, e.g. moving, filtering, closing, changing
sort order, reassigning RecordSource, Requery, ...
If you use the Error event of the form, you can set a breakpoint (F9) and
discover what the DataErr is. AFAIK, they are not listed anywhere, but some
common ones are:
3022 - duplicate index;
3201 - related record required;
2113 - wrong data type.
You can use the BeforeUpdate event of the form to check for record-level
validation issues.

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps.org.
> It occurs when going to the next (or proevious) record if you enter an
> already existing figure to the form.
[quoted text clipped - 47 lines]
>> >> >> done
>> >> >> via data verification on data entry form?