Solved Autosave Continuous Form

Razon09

New member
Local time
Tomorrow, 04:05
Joined
Jul 18, 2023
Messages
2
Hi, I tried to make a continuous form. I made a cancel button to close the form and to undo every change that has been made. It works for my single form with this:

Private Sub CMD_BACKTOMAIN_Click()
Me.Undo
DoCmd.Close acForm, "FRM_PURCHASING ORDER", acSaveNo
DoCmd.OpenForm "MAIN FORM"
End Sub

But when I use it for a continuous form, It's not working.

Can anyone help?
 
try to google using Transactions in Ms Access.
 
Seems to be a rash of people recently who want to work the complete opposite way that Access works?, here and on other sites.
When I first started with Access, that was one of the hardest things I had to get used to. :)
 
Code:
DoCmd.Close acForm, "FRM_PURCHASING ORDER", acSaveNo
' better
DoCmd.Close acForm, Me.Name
acSaveNo has no relevance here, it doesn't affect data, just a change to the form design (which you don't make).

A continuous form is mandatory a bound form, interacting accurately and only with the current record. This gives you the same behavior as in a bound single form.
 

Users who are viewing this thread

Back
Top Bottom