K
KmhComputer
Hi,
I hope someone can help me with this. I have a form that has your standard
Add, Edit, Delete, Save and Exit buttons. When the user adds a record, he or
she must select the Save button to actually save the record, because there is
a complicated process behind the scenes that must be run. I put in a safety
measure that, if the user selected Exit before the Save, the user would get a
prompt that would as them if they wanted to exit without saving their new
record. If so, then the program performs the undo command and all is well.
If the user selects no, I want to save this record, I would just return them
to the screen. But it seems that Access actually saves the record at this
point and then when my program goes to check for duplicate data etc., of
course it produces and error as such, because the record was already saved.
What can I do to stop this? I am currently using the Click event
procedures. Thanks so much for any help you can give me.
I hope someone can help me with this. I have a form that has your standard
Add, Edit, Delete, Save and Exit buttons. When the user adds a record, he or
she must select the Save button to actually save the record, because there is
a complicated process behind the scenes that must be run. I put in a safety
measure that, if the user selected Exit before the Save, the user would get a
prompt that would as them if they wanted to exit without saving their new
record. If so, then the program performs the undo command and all is well.
If the user selects no, I want to save this record, I would just return them
to the screen. But it seems that Access actually saves the record at this
point and then when my program goes to check for duplicate data etc., of
course it produces and error as such, because the record was already saved.
What can I do to stop this? I am currently using the Click event
procedures. Thanks so much for any help you can give me.