Hello
Can anyone point me in the right direction on this? I have a form used to enter event data to a table. On the form I have a page with several tabs. on one of the tabs I have a subform to capture the names of attendees. If I load the form and edit a record on the form, I can use
If Me.Dirty = True Then
DoCmd.RunCommand acCmdUndo
endif
or a
If Me.Dirty = True Then
Me.Undo
endif
command to undo any chnges made during the editing as long as i never entered the subform. I need the undo function to return the main form AS WELL AS the subform data to its original state. Can that even be done? It seems the change in focus from main to subform prevents the undo from working on either, but if I stay out of the subform, the undo on the main form works fine for main form data undo. I think I'm missing the concept with subforms. I'd be greatful for any thoughts.
Thank you
Can anyone point me in the right direction on this? I have a form used to enter event data to a table. On the form I have a page with several tabs. on one of the tabs I have a subform to capture the names of attendees. If I load the form and edit a record on the form, I can use
If Me.Dirty = True Then
DoCmd.RunCommand acCmdUndo
endif
or a
If Me.Dirty = True Then
Me.Undo
endif
command to undo any chnges made during the editing as long as i never entered the subform. I need the undo function to return the main form AS WELL AS the subform data to its original state. Can that even be done? It seems the change in focus from main to subform prevents the undo from working on either, but if I stay out of the subform, the undo on the main form works fine for main form data undo. I think I'm missing the concept with subforms. I'd be greatful for any thoughts.
Thank you