ACC2: Dynamically Synchronizing Two Forms Using CodeLast reviewed: April 25, 1997Article ID: Q119398 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills. This article describes how to synchronize a form to the current record in a subform using Access Basic. The method described in this article searches a recordset returned by the form's RecordsetClone property and synchronizes the form's bookmarks with the Recordset. This article assumes that you are familiar with Access Basic and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Access Basic, please refer to the "Building Applications" manual.
MORE INFORMATIONThe following example demonstrates how to synchronize the Products form to the current record in the Categories Subform form in the sample database NWIND.MDB. CAUTION: Following the steps in this example will modify the sample database NWIND.MDB. You may want to back up the NWIND.MDB file, or perform these steps on a copy of the NWIND database.
Forms!Categories![Categories Subform].Form REFERENCESFor an example of how to dynamically synchronize two forms in Microsoft Access for Windows 95 version 7.0, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q149940 TITLE: ACC: Dynamically Synchronizing Two Forms Using Code (95/97)Microsoft Access "User's Guide," version 2.0, Chapter 25, "Using the OnCurrent Property to Keep Two Open Forms Synchronized," pages 639-641 Microsoft Access "Building Applications," version 2.0, Chapter 4, "Using Forms to Collect, Display, and Filter Information," page 84, and Chapter 11, "Working with Sets of Records," pages 255-259 For more information about the SysCmd() function, search for "SysCmd," and then "SysCmd Function" using the Microsoft Access Help menu. For more information about the Me property, search for "Me" then "Me Property" using the Microsoft Access Help menu. |
Keywords : FmsHowto kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |