Question : Access project - How to undo changes in a continuous form

Hi,
  I have a continous form in my Access project file. User can change a combobox and text field per record.

He clicks on Save button to save all changes at once.

Similarly, he can click on Cancel button to cancel the changes for all the records at once. If I call Form.Undo (or) Form.cbo1.Undo (or) docmd.runcommand accmdUndo - it undo only the last modified record.

How can I undo the changes for all records in the continuous form on clicking a command button?

I think it does immediate saving when I move to the next record...

Answer : Access project - How to undo changes in a continuous form

That's right, each record gets saved as soon as the focus leaves the record.  Basically you can't easily undo all records in a continuous form scenario.  To achieve what you are trying to do would require the original values to be stored somewhere either in another table or different fields in the same table, and then an update query would be required to write the values back.
Random Solutions  
 
programming4us programming4us