Sub GetFieldnames()
Dim adoxCat As ADOX.Catalog, adoxTable As ADOX.Table, adoxColumn As ADOX.Column
Set adoxCat = CreateObject("ADOX.Catalog")
adoxCat.ActiveConnection = CurrentProject.Connection
Set adoxTable = adoxCat.Tables("tblDepotData")
For Each adoxColumn In adoxTable.Columns
Debug.Print adoxColumn.Name
Next adoxColumn
End Sub