PRB: GroupLevel ControlSource Change in Debug Not RepaintedArticle ID: Q147570Creation Date: 26-FEB-1996 Revision Date: 03-DEC-1996
The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
When you try to change the ControlSource property of a GroupLevel property
on a report while the report is in Design view, the group header and footer
section bar titles do not display the change.
NOTE: This behavior only occurs when you make the change through the Debug
window. This behavior does not occur when you make the change using Visual
Basic for Applications.
CAUSE
The screen does not repaint when you make this change through the Debug
window. You will not see the change to the report in Design view until the
report or its section bars are repainted.
RESOLUTION
To work around this behavior, use one of the following methods:
Minimize, and then restore (or maximize) the report's Design view. -or- Open another application, such as Microsoft Excel, and then switch back to Microsoft Access. -or- Drag the Debug window on top of the section bar that does not repaint. Then click the Debug window again and drag it away from the section bar.The first two solutions will completely repaint the report. The third solution will repaint a particular section bar that was covered by a window and then re-exposed.
MORE INFORMATION
Steps to Reproduce Behavior
Reports!Invoice.GroupLevel(0).ControlSource = "TEST" NOTE: As long as the section bars for your group sections were not covered by another window, the section bar titles do not change.
? Reports!Invoice.GroupLevel(0).ControlSource Note that "Test" is returned in the Debug window. However, the new name is not reflected in the group header section bar title.
|
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.