PRB: Subform Datasheet Layout Changes Automatically SavedArticle ID: Q138977Creation Date: 31-OCT-1995 Revision Date: 03-DEC-1996
The information in this article applies to:
SYMPTOMS
Novice: Requires knowledge of the user interface on single-user computers.
In Microsoft Access version 7.0 and 97, if a subform is in Datasheet view
on a main form and you change the width of the columns on the subform, the
changes will be saved automatically when the main form is closed. This
behavior differs from Microsoft Access version 2.0 in which layout changes
to the subform datasheet are automatically discarded.
CAUSE
This behavior is a new feature of Microsoft Access 7.0 and 97, which makes
it significantly easier to edit the layout of a datasheet presented in a
subform.
RESOLUTION
To work around this behavior, revoke the Modify Design permissions option
for users who should not be allowed to save these layout changes. Subform
layout changes will silently be discarded if the current user does not have
Modify Design permissions. See the "Steps to Reproduce Behavior" section
later in this article for an example demonstrating this technique.
MORE INFORMATION
In Microsoft Access versions 1.x and 2.0, developers often relied on the
fact that datasheet layout changes are discarded when the datasheet is
presented in a subform. They used this technique to avoid the "Do you want
to save changes?" prompt if layout changes were made to a normal Datasheet
view form. This particular behavior made it difficult and tedious to alter
the actual layout of the datasheet. For more information about this topic,
please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q105656 TITLE : PRB: Subform ColumnWidth Changes Made in Main Form Not SavedSteps to Reproduce Behavior
|
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.