2drunk2funk
MIS
Hi,
I have a form associated with a recordset.
I can navigate through back and forward and make changes quite happily.
The problem occurs when I try to cancel partial entry of a NEW record.
I have my form validation code in the form_beforeupdate event to verify all the fields are populated and valid.
However, when pressing ESC to cancel the entry, it appears to cancel (My autonumber field reverts to (AutoNumber) ). My form_undo event triggers etc
The trouble is the beforeUpdate event then triggers again?
This is only on new records being cancelled.
The form me.dirty is true, although not sre why as I thought the ESC effectively reset this state.
Any ideas?
I am using 2002 format for the first time, hope it is nothing to do with that!
I have a form associated with a recordset.
I can navigate through back and forward and make changes quite happily.
The problem occurs when I try to cancel partial entry of a NEW record.
I have my form validation code in the form_beforeupdate event to verify all the fields are populated and valid.
However, when pressing ESC to cancel the entry, it appears to cancel (My autonumber field reverts to (AutoNumber) ). My form_undo event triggers etc
The trouble is the beforeUpdate event then triggers again?
This is only on new records being cancelled.
The form me.dirty is true, although not sre why as I thought the ESC effectively reset this state.
Any ideas?
I am using 2002 format for the first time, hope it is nothing to do with that!