It is a long time since I use 97, but I think you should be able to get field names from a TableDef.
Code:
Dim tdf As TableDef
Dim db As Database
Dim fld
Set db = CurrentDB
Set tdf = d.TableDefs([i]"TableName"[/i])
For Each fld in tdf.Fields
Debug.Print fld.Name
Next
Or there abouts.
You should also be able to get a field list from a recordset.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.