That won't work, entirely. There are a few steps missing...
First you'll need to get the total count of records retrieved from the DB (recRS.Recordcount). This is important so you'll know how big your array needs to be. Then you'll have to cycle through each record in your recordset and add it to your array:
(This is off the top of my head so there may be mistakes)
----------
dim arrMyArray() as variant 'or string, etc.
dim x as integer
'dimension the size of the array based on total
'records in your recordset
redim arrMyArray(recRS.recordcount -1)
'cycle through each record and add it to the array
for x = 1 to ubound(arrMyArray)
arrMyArray(x) = recRS!fieldname
next
-----------
Finally, instead of doing this you can also return a recordset to a calling function, instead of returning an array:
You should use a collection instead of an array. Create a class module with and add the fields of your table as properties. Then create a collection (you can use the Class Builder Utility). Then create an object for each record you have and add it to the collection.
I can't explain it in a short message, so I added a little example, hope it helps.
Its OK what I did was store both the fields in a string separated by "/"
When I want to use the values, I use the split function with "/" as the delimiter. Works fine!