Delay commit on a bound form?

R

robert.waters

Typically when you first enter data in any bound control on a bound
form, a new record is created; is there any way for me to delay this
process, for instance until a button is pressed? I don't want to use
any funky undo magic.

Thanks!
 
R

Rick Brandt

robert.waters said:
Typically when you first enter data in any bound control on a bound
form, a new record is created; is there any way for me to delay this
process, for instance until a button is pressed? I don't want to use
any funky undo magic.

Thanks!

Correction. A new record is "started". It won't be "created" until it is
saved. Undo is all you have I'm afraid.
 
R

ruralguy via AccessMonster.com

You wouldn't be using an AutoNumber field for something beside a unique
number would you?
 
R

robert.waters

You wouldn't be using an AutoNumber field for something beside a unique
number would you?

Ha. No, but I know why you asked; it does annoy me that records that
are 'started' consume an autonumber, even if the record is unused.

My problem is that I have a high-usage bound form that is constantly
being 'cancelled', and I thought it would make more sense to not even
create the record until the user is sure they want to save it. I
guess I could just change it to an unbound form, but that would take
work ;)

Thanks for all your help, folks.
 
B

Bob Quintal

Ha. No, but I know why you asked; it does annoy me that
records that are 'started' consume an autonumber, even if the
record is unused.

My problem is that I have a high-usage bound form that is
constantly being 'cancelled', and I thought it would make more
sense to not even create the record until the user is sure
they want to save it. I guess I could just change it to an
unbound form, but that would take work ;)

Thanks for all your help, folks.
The record is only saved when 1. the user changes to another
record, 2. manually saves the record via the menu bar. or 3.
closes the form.

I usually handle controlling saves by putting a messagebox in
the form's before update event, that asks the user if he wants
to save, and either lets the process continue if yes, or
executes a me.undo statement then closes the form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top