Okay, I see. What I showed was how to read the catalog to get the field names. Any SQL query returns meta data, which includes a fields collection, which are the fields that are used in the select statement. I will attach an example of using the fields collection. The example only uses the fields but you can go ahead and process the data like any recordset.
Example.
Function GetFieldNames(theTable As String) As Long
Dim SqlString As String, RSMT As New Recordset, cnn As ADODB.Connection
Set cnn = CurrentProject.Connection
Dim indx As Integer, Upper As Long
''Open the table and the fields are accessible
RSMT.Open theTable, cnn, adOpenStatic, adLockReadOnly
Upper = RSMT.Fields.Count - 1
ReDim glbFieldNameList(Upper)
Debug.Print "field Count = "; RSMT.Fields.Count
For indx = 0 To (RSMT.Fields.Count - 1)
Debug.Print "field Number = "; indx
'' glbFieldNameList(indx) = RSMT.Fields(indx).Name
Debug.Print "field Names = "; RSMT.Fields(indx).Name
Debug.Print "field Type = "; RSMT.Fields(indx).type
Next '-- end for
GetFieldNames = Upper ' Returns number of elements
'---- number of occurrances in Array
'''GetFieldNames = (Upper = UBound(glbFieldNameList)) ' Returns number of elements
End Function