Loading query values into an array

R

Rod

Newby question: I want to load the complete results of a query into an array
using the GetRows method:

Set myArray = mySQL.GetRows(myNumrows)

In the simplest instance, mySQL = "SELECT * FROM MyTable".

How do I set mySQL and how do I set myNumrows to be the full recordset?
 
K

Klatuu

myArray = mySQL.GetRows(adGetRowsRest, adBookmarkFirst)

Will return all fields in the query for all rows. You don't need the word
Set.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top