ACC: How to Use Automation to Fill a List BoxLast reviewed: August 28, 1997Article ID: Q142996 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills. This article demonstrates how to use Automation to populate a list box from values contained in a Microsoft Excel worksheet. This 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.
MORE INFORMATIONThe following function uses Automation to retrieve a list of countries from a Microsoft Excel worksheet. The list is used to populate a list box bound to the Country field of the Suppliers table in the sample database Northwind.mdb.
REFERENCESFor more information about using functions to fill list boxes, search the Help Index for "List Boxes, Create a list box or combo box that gets its rows from a Visual Basic function," or ask the Microsoft Access 97 Office Assistant. For more information about Automation, search the help Index for "OLE Automation." Keywords : AutoGnrl kbprg kbusage PgmHowTo IntpOleA Technology : kbole Version : 7.0 97 Platform : WINDOWS Hardware : x86 Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |