I'm connected to an oracle database that basically outputs data into a sheet using an SQL statement I give it:
This is the code that copies it into a spreadsheet:
Set oRsOracle = New ADODB.Recordset
With oRsOracle
.ActiveConnection = oConOracle
.Open "SELECT CalcGrp_Name FROM Calc_Group"
Sheets(2).Range("A1").CopyFromRecordset oRsOracle
.Close
End With
Set oRsOracle = Nothing
oConOracle.Close
Set oConOracle = Nothing
Basically instead of the line Sheets(2).Range("A1").CopyFromRecordset oRsOracle
is there a way to store these values into an Array or any data struct VB has to offer, I basically want to use these values and randomly populate them into another a data-test generation file