Why are you moving the recordset Last? The code I gave you simply does a Do While loop until it get's to the End Of File (i.e. EOF).
You are looping through a recordset what's the point of saving it into an array again? What if the max number of records for a particular type is more than 10, how do you cater for that dynamically?
Follow the bare structure I gave you in my first post, for each value in the recordset, concatenate it to a string variable.
You are looping through a recordset what's the point of saving it into an array again? What if the max number of records for a particular type is more than 10, how do you cater for that dynamically?
Follow the bare structure I gave you in my first post, for each value in the recordset, concatenate it to a string variable.