Article ID: 148361 - View products that this article applies to.
This article was previously published under Q148361
This article provides a Visual Basic for Applications example of how to create a Data Access Object (DAO) record set that contains the results of an SQL Query string.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
Visual Basic Code Example
For more information about the OpenRecordSet method in Microsoft Excel 97, from the Visual Basic Editor, click the Office Assistant, type OpenRecordSet, click Search, and then click to view "OpenRecordSet method."
NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If the Assistant is not able to answer your query, please see the following article in the Microsoft Knowledge Base:
176476For more information about the OpenRecordset method, click the Index tab in Microsoft Excel 7.0 Help, type the following text
(https://support.microsoft.com/kb/176476/EN-US/ )OFF: Office Assistant Not Answering Visual Basic Questions
OpenRecordset Methodand then double-click the selected text to go to the "OpenRecordsetMethod" topic.
Article ID: 148361 - Last Review: October 11, 2006 - Revision: 2.2
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.