Undoing data changes on a continuous form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a continuos form that the user can update i want to have a 'save
changes' and a 'cancel changes' button on the form

The Me.Undo command only undoes the changes made to the current record

How do I set up a 'cancel changes' button to undo changes to several records
at once.

I've considered copying the records to a temporary table when the form is
loaded and then copying to the main table when the save changes command is
pressed but this seems a little unwieldy. Does anyone have any better ideas?

Thanks

Simon
 
Simon Cleal said:
I have a continuos form that the user can update i want to have a 'save
changes' and a 'cancel changes' button on the form

The Me.Undo command only undoes the changes made to the current record

How do I set up a 'cancel changes' button to undo changes to several records
at once.

I've considered copying the records to a temporary table when the form is
loaded and then copying to the main table when the save changes command is
pressed but this seems a little unwieldy. Does anyone have any better ideas?

The best idea is to convey to your users that edits are saved "as they go" and
to not change anything unless they want the change saved. Otherwise in a
continuous form your idea of using a "work table" is the only option you've got.

If you are concerned about "accidental" changes you can open the form initially
with AllowEdits, AllowDeletions, and AllowAdditions set to False and then
provide a button that toggles those properties to True. This way the user is at
least indicating an intention to change the record before he is allowed to do
so.
 

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

Similar Threads

Cancel = True "variable not defined" 3
Undo Button 2
undo issue 1
Undo Command 4
Undo command 3
SetFocus in Form Undo event 13
Cancel button to undo data on subform 13
UNDO button 3

Back
Top