Creating a Recordset Object with the Query Helper API
Note
Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.
This code segment executes when the specified query language is either Dialect 1 or 2 of the Indexing Service query language. It uses the CreateRecordset method of the Query object, which creates RS — a Recordset object to represent the results of the query — and executes the query.
Set RS = Q.CreateRecordset("sequential")