In an effort to create re-usable code, I&#039m trying to come up with a function I can reuse to list out specific fields in a recordset to an HTML table.<BR><BR>I want to open and create the recordset elsewhere and just call a function such as:<BR><BR>while NOT rsObject.EOF<BR> listOutData(rsObject, array_of_fieldnames)<BR> rsObject.moveNext<BR>wend<BR><BR>Can you pass a recordset object in this way? I ask as I&#039m doing something similar to the above and it prints the right number of records but each line is only the first record repeated!