ACC1x: Control Still Appears on Page After GotoPage Action

Last reviewed: June 8, 1997
Article ID: Q104825
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1

SYMPTOMS

After the GotoPage macro action runs and a new page is displayed, the contents of the last control on the source page still appear on the new page.

CAUSE

The GotoPage macro action was run from a macro that is attached to the AfterUpdate property of a control.

RESOLUTION

Do not include a GotoPage macro action in a macro attached to the AfterUpdate property of a control. Instead, use the GotoPage action in a macro attached to the control's OnExit property.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access versions 1.0 and 1.1. This problem no longer occurs in Microsoft Access version 2.0.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a new macro with the following action, and then save it with the name GotoPage2:

          GotoPage
    
             PageNumber: 2
    
    

  2. Create a new, unbound form.

  3. Size the detail section of the form to be 4 inches tall.

  4. Place a page break control in the form's detail section at the vertical 2-inch mark.

  5. Place a combo box with the following properties in the upper half of the detail section, above the page break control:

          RowSourceType: Value list
          RowSource: 1;2;3;4
          AfterUpdate: GotoPage2
    

  6. Place a text box in the lower half of the form's detail section, below the page break control.

  7. Size the Form window so that only the upper half of the detail section is visible.

  8. View the form in Form view.

  9. Make a selection in the combo box.

The form will advance to page 2, and the text box will be selected, as it should be. However, the combo box will still be visible on the page and may overlap the text box.


Additional query words: gotocontrol ghost
Keywords : kbprg McrOthr
Version : 1.0 1.1
Platform : WINDOWS
Hardware : X86
Issue type : kbbug
Resolution Type : kbworkaround


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.

Last reviewed: June 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.