ACC: Unable to Undo or Rollback Main Form and Subform Changes (131535)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q131535
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you make editing changes to a main form record and one or more subform
records, and then click Undo Saved Record on the Edit menu, Microsoft
Access does not undo changes made to the main form and the subform
together.
If focus is in the main form, Undo Saved Record will undo changes to the
main form record only. If focus is in the subform, Undo Saved Record will
undo the changes made to the last record you made changes to and not to
other records you may have edited in the subform.
NOTE: This article explains a technique demonstrated in the sample
files, FrmSampl.exe (for Microsoft Access for Windows 95 version 7.0)
and FrmSmp97.exe (for Microsoft Access 97). For information about how
to obtain these sample files, please see the following articles in the
Microsoft Knowledge Base:
150895 ACC95: Microsoft Access Sample Forms Available in Download Center
175066 ACC97: Microsoft Access 97 Sample Forms Available in Download Center
CAUSE
Because Microsoft Access does not group edits made to the main form record
and edits made to one or more subform record in a single transaction,
Microsoft Access cannot roll back the changes as a single unit.
RESOLUTION
To work around to this behavior, you may find the method described in
the sample Microsoft Access 2.0 database, UNDOFM.MDB useful. For
information on how to obtain UNDOFM.MDB, please see the following article
in the Microsoft Knowledge Base:
149358 ACC2: Sample to Undo Changes in Forms Available in Download Center
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbprb kbusage KB131535 |
---|
|