A
Andy
I have a CancelEvent command in the BeforeUpdate event in a single form. The
form happens to be a NewRec form so would normally create a new record if no
Cancel actioned. The CancelEvent command is run only if a pubCancel public
variable is set to True.
This was working fine until I added a Calendar control in a subform on the
main form to set one of my date fields. If I set a date in this way and then
close the main form with the pubCancel variable set to True, the CancelEvent
command is run but a new record gets created (the date field is Null). I need
to stop a new record being created in these circumstances.
Any thoughts?
form happens to be a NewRec form so would normally create a new record if no
Cancel actioned. The CancelEvent command is run only if a pubCancel public
variable is set to True.
This was working fine until I added a Calendar control in a subform on the
main form to set one of my date fields. If I set a date in this way and then
close the main form with the pubCancel variable set to True, the CancelEvent
command is run but a new record gets created (the date field is Null). I need
to stop a new record being created in these circumstances.
Any thoughts?