G
Guest
I am trying to set up a form and a subform where I can make changes to both
forms and allow the user to rollback all changes at the bottom of the main
form. I used an example in a manual where you remove the
linkmasterfields/linkchildfield properties and you manage the linking
yourself. The sub-form is based on a query where the parameter is based on a
field from the main form. There is a command button on the main form and I
set the enabled property to allow me to undo all the changes to the subform.
This part is working perfectly. I can make changes to all the records on the
subform and when I say cancel on this command button, they are rolled back
properly. The issue is that I want to roll back both the main form and sub
form all with one click. What is happening is when I move from the main form
to the sub-form, the main form is updated. I can undo the changes on the
main form if I don't move to the sub form. What do I do to make this one
command button roll back both changes?
forms and allow the user to rollback all changes at the bottom of the main
form. I used an example in a manual where you remove the
linkmasterfields/linkchildfield properties and you manage the linking
yourself. The sub-form is based on a query where the parameter is based on a
field from the main form. There is a command button on the main form and I
set the enabled property to allow me to undo all the changes to the subform.
This part is working perfectly. I can make changes to all the records on the
subform and when I say cancel on this command button, they are rolled back
properly. The issue is that I want to roll back both the main form and sub
form all with one click. What is happening is when I move from the main form
to the sub-form, the main form is updated. I can undo the changes on the
main form if I don't move to the sub form. What do I do to make this one
command button roll back both changes?