ACC: How to Delete Table Set in RecordSource When Form ClosesLast reviewed: August 29, 1997Article ID: Q132100 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. This article demonstrates how you can delete a table set in a form's RecordSource property when you close the form. This technique is useful if you need to set a form's RecordSource property to a temporary table at run time and then delete the temporary table when the form closes.
MORE INFORMATIONThis article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of the "Building Applications with Microsoft Access" manual. NOTE: Visual Basic for Applications is called Access Basic in Microsoft Access version 2.0. For more information about Access Basic, please refer to the "Building Applications" manual. The method described below runs a sample user-defined Visual Basic function from a command button on a form based on one table. The sample function sets the form's RecordSource property to an empty string (""), and then deletes the table set in the form's RecordSource property when the form closes. To delete a table set in a form's RecordSource property when the form closes, follow these steps:
REFERENCESFor more information about the DoCmd object, search for "DoCmd object" using the Microsoft Access 97 Help Index.
|
Additional query words: timing event code
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |