The information in this article applies to:
Novice: Requires knowledge of the user interface on single-user computers. This article applies to a Microsoft Access database (.mdb) and a Microsoft Access project (.adp). SUMMARYTo set the focus to a control on a subform, you can create a macro that uses the GoToControl action to first move to the subform (which is a type of a control), and then uses the GoToControl action again to move to a particular control on the subform. MORE INFORMATIONThe GoToControl macro action does not allow you to use the full syntax for the ControlName argument as:
If you use this syntax, you may receive the following error message:
To work around this behavior, you need to set up a macro that first sets the focus to the subform control, and then sets the focus to a specific control on the subform. CAUTION: Following the steps in this example will modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and perform these steps on a copy of the database.
REFERENCESFor more information about moving to a specific control, click Microsoft Access Help on the
Help menu, type GotoControl action in the Office Assistant or
the Answer Wizard, and then click Search to view the topic. Additional query words: how to
Keywords : kbusage kbdta McrActn |
Last Reviewed: November 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |