Microsoft KB Archive/147570

{|
 * width="100%"|

PRB: GroupLevel ControlSource Change in Debug Not Repainted
'Article ID: Q147570

Creation Date: 26-FEB-1996

Revision Date: 03-DEC-1996' The information in this article applies to:


 * Microsoft Access versions 7.0, 97

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

 Open the sample database Northwind.mdb. Open the Invoice report in Design view. Press CTRL+G to open the Debug Window.  Enter the following syntax in the Debug window, and then press ENTER: "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.   Below the syntax you typed in the Debug window in step 4, type the following syntax, and then press ENTER: "? 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." '' ©1997 Microsoft Corporation. All rights reserved. Legal Notices.

''

KBCategory: kbusage

KBSubcategory: RptSort

Additional reference words: 7.00 97 8.00