I have four recordsets (rstToP, rstToHP, rstToHS, rstToF) each with three columns (Item, Location, Type). I've used code like
to help me count the records and make sure I have the array dimensioned properly. Now what I'm trying to do is move column Item and column Location from each of the four recordsets into the varToArray (with rstToP filling columns 0 and 1, rstToHP filling 2 and 3, etc).
As I'm typing this, I suspect it may be easier to have them fill the rows of the array instead of the columns, if so, that is definitely equally workable from my perspective.
Code:
With rstToF .MoveLast .MoveFirst If (.RecordCount) > intRecordCount Then intRecordCount = (.RecordCount) End With ReDim varToArray(intRecordCount-1, 7)
As I'm typing this, I suspect it may be easier to have them fill the rows of the array instead of the columns, if so, that is definitely equally workable from my perspective.
Comment