Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
describe tablename ' works for MySQL server
sp_help tablename ' works for MS SQL server
...
Dim db as Database
Dim rs as RecordSet
Dim counter as Integer
Dim FieldNames() As String
...
Set db = OpenDatabase(...)
Set rs = db.OpenRecordset(...)
ReDim FieldNames(rs.Fields.Count)
...
For counter = 0 To rs.Fields.Count - 1
FieldNames(counter) = rs.Fields(counter).Name
Next counter
Set rs = Nothing
Set db = Nothing
Dim tjDb As DAO.Database
Dim tjTab As DAO.TableDef
Dim tjFld As DAO.Field
Set tjDb = CurrentDb
Set tjTab = tjDb.TableDefs!Table5
For Each tjFld In tjTab.Fields
MsgBox tjFld.Name
' Do what you want with the name(s) here
Next
tjDb.Close
Set tjFld = Nothing
Set tjTab = Nothing
Set tjDb = Nothing