Fails to prompt before saving record when closing form

D

Dan Ramer

To perform some narrowly focused data manipulation, I've
created a form with a subset of fields from each record.
I open and close that form with a macro. The macro
Action that closes the special form is Close, the Object
Type is Form, the Object Name is specified appropriately,
and the Save is set for Prompt.

When I execute the macro with a Command Button on the
special form, the form closes properly but always saves
the data displayed on the form without the desired prompt
appearing. I wish to be prompted to verify this save
before the displayed record is overwritten. The problem
is not related to the SetWarnings Action. Why isn't the
macro operating properly? Or do I misunderstand the Save
property of the Close Action? If so, how may I obtain
the result I wish?

Any help would be most appreciated.
 
K

Ken Snell

The Save argument for the Close action is for saving changes to the *Design*
of the form, not the data on the form. ACCESS always automatically saves the
current record on a form when the form closes.
 

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