This article was previously published under Q209765
Moderate: Requires basic macro, coding, and interoperability skills.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Tip You can use the GoToControl action to move to a subform, which is a type of control. You can then use the GoToRecord action to move to a particular record in the subform.This is correct, but it is necessary to leave the ObjectType and ObjectName arguments for the GoToRecord action blank for this to work successfully.
1. | Open the sample database Northwind.mdb, and then create the following new macro:Macro Name Condition Action --------------------------------------- Macro1 GoToRecord Macro1 Actions ----------------------------------------- GoToRecord Object Type: Form Object Name: Quarterly Orders Subform Record: Next Offset: <blank> |
2. | Open the Quarterly Orders form. |
3. | On the Tools Menu, click Macro, and then click Run Macro. |
4. | Click Macro1, and then click OK.
Note that you receive the following error message:
Object 'Quarterly Orders Subform' isn't open
|
5. | Change Macro1 as follows:Macro Name Condition Action ----------------------------------------- Macro1 GoToControl GoToRecord Macro1 Actions ----------------------------------------- GoToControl Control Name: Quarterly Orders Subform GoToRecord Object Type: <blank> Object Name: <blank> Record: Next Offset: <blank> |
Keywords: KB209765, kbusage, kbprb, kberrmsg