Re: Undo when move to next record or close form
- From: "gmazza via AccessMonster.com" <u37142@uwe>
- Date: Wed, 08 Apr 2009 15:46:06 GMT
It isn't working either when navigating to the next record because when I hit
the next record button, I see it goto the next record, then I get the pop-up,
and I assure you my code is in the Before Update.
There is no reason to keep the form open when they close it, its just
screwing up because if they change the field, then close the form, my pop-up
is still coming up because its firing on Before Update, yet the form is still
closing and the record is still getting saved.
JimBurke wrote:
I'm guessing that your code is working for when you navigate to a a new
record - Before Update should handle that. If they close the form, is there
any reason to keep it open, or is it simply a matter of saving the changes if
they enter the correct password? If you may need to keep the form open for
any reason, put code in the forms UnLoad event proc, and cancel the On Unload
event if you want to keep the form open. Otherwise use the On Close proc. In
either case, If they made changes and don't enter the right password, undo
the changes. Then, if you have a situation where the form should stay open,
in the On Unload, after undoing the changes, set Cancel = True and that will
cancel the closing of the form. On Close does not have a Cancel option, On
Unload does.
Hello Jim, thanks for your reply.[quoted text clipped - 23 lines]
You are right, its not a subform, its a pop-up form.
That will prevent incorrect data entry if the user tries to close the
form with the incorrect entry.
--
Message posted via http://www.accessmonster.com
.
- Follow-Ups:
- Re: Undo when move to next record or close form
- From: JimBurke via AccessMonster.com
- Re: Undo when move to next record or close form
- References:
- Undo when move to next record or close form
- From: gmazza via AccessMonster.com
- Re: Undo when move to next record or close form
- From: fredg
- Re: Undo when move to next record or close form
- From: gmazza via AccessMonster.com
- Re: Undo when move to next record or close form
- From: JimBurke via AccessMonster.com
- Re: Undo when move to next record or close form
- From: gmazza via AccessMonster.com
- Re: Undo when move to next record or close form
- From: JimBurke via AccessMonster.com
- Undo when move to next record or close form
- Prev by Date: Re: Displaying the "Database" window
- Next by Date: RE: Displaying the "Database" window
- Previous by thread: Re: Undo when move to next record or close form
- Next by thread: Re: Undo when move to next record or close form
- Index(es):
Relevant Pages
|