XL7: How to Return DAO Query Results Directly to a List BoxLast reviewed: September 2, 1997Article ID: Q149254 |
The information in this article applies to:
SUMMARYThe following Microsoft Excel Visual Basic for Applications example returns the results of a Data Access Object (DAO) query on an external database directly to a list box.
MORE INFORMATIONMicrosoft provides examples of Visual Basic for Applications procedures for illustration only, without warranty either expressed or implied, including, but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures in this article are provided 'as is' and Microsoft does not guarantee that they can be used in all situations. While Microsoft support engineers can help explain the functionality of a particular macro, they will not modify these examples to provide added functionality, nor will they help you construct macros to meet your specific needs. If you have limited programming experience, you may want to consult one of the Microsoft Solution Providers. Solution Providers offer a wide range of fee-based services, including creating custom macros. For more information about Microsoft Solution Providers, call Microsoft Customer Information Service at (800) 426-9400. The following Visual Basic for Applications macro uses DAO to perform a query on Northwind.mdb, a sample Microsoft Access database supplied with Microsoft Office Professional for Windows 95, version 7.0.
REFERENCESFor additional information, click Microsoft Excel Help Topics on the Help Menu, click the Index Tab and then search on the following keywords:
OpenDatabase OpenRecordset MoveLast MoveFirst GetRows Recordcount"Microsoft Excel Visual Basic Programmer's Guide," pages 235-253 "Developing Excel 95 Solutions with Visual Basic for Applications," by Eric Wells, Microsoft Press, 1995, Chapter 7, pages 397-532 "Microsoft Jet Database Engine Programmer's Guide," by Dan Haught and Jim Ferguson, Microsoft Press, 1995
|
Additional query words: 7.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |