Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to make a query using ado and have the data dumped into
an array for more manipulation? Right now I have a query like this: strQuery = "SELECT baser, upt, multiplier FROM olb WHERE" & _ " SPR = '" & Range("C2").Value & "'" & _ " ORDER BY id desc" With rs .Open strQuery, dbConn, adOpenStatic Range("J6").CopyFromRecordset rs .Close But I would rather do Array.Copyfromrecordset or something like that The results of the query can be different sizes so I can't predefine the array size, I think this requires declaring a variable as 'variant', but from there I'm not quite sure where to go. Thanks for any assistance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I need to have a record number change for every record | Excel Discussion (Misc queries) | |||
Open new record with selected fields from previous record | Excel Discussion (Misc queries) | |||
Finding last record in month for each of several types of record. | Excel Programming | |||
Record Macro - Record custom user actions | Excel Programming | |||
Need help autopopulating next new record with previous record data | Excel Programming |