I'm trying to populate an array with rows from a table.
Right now I've only got one row in the table for test and debugging purposes, and I'm able to connect to the db, set the recordset, and I can count the rows in the recordset (while debugging, I can see the RecordCount is holding a value of 1).
for some reason, I'm getting a type mis-match error on this statement:
Set varArray = rstBedDays.GetRows(rstBedDays.RecordCount)
I've already declared varArray as Variant, so now I'm really confused. I've searched the forums and the web to see if I can find out where things are going wrong, but still haven't been able to fix this.
Can anyone give me any advice, please?
Thanks so much.
Right now I've only got one row in the table for test and debugging purposes, and I'm able to connect to the db, set the recordset, and I can count the rows in the recordset (while debugging, I can see the RecordCount is holding a value of 1).
for some reason, I'm getting a type mis-match error on this statement:
Set varArray = rstBedDays.GetRows(rstBedDays.RecordCount)
I've already declared varArray as Variant, so now I'm really confused. I've searched the forums and the web to see if I can find out where things are going wrong, but still haven't been able to fix this.
Can anyone give me any advice, please?
Thanks so much.