TCARPENTER
Programmer
I know I've done this at least once, but for the life of me I can't remember how to do it - or did I just dream I did it?
Thanks
Todd
Thanks
Todd
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.
tblDef.fields("NameOfTheField").caption = "A new caption"
'or
tblDef.fields(index).caption = "A new caption"
Dim lObj_Catalog As ADOX.Catalog
Set lObj_Catalog = New ADOX.Catalog
lObj_Catalog.ActiveConnection = CurrentProject.Connection
MsgBox lObj_Catalog.Tables(<Table Name>).Columns(<Column Name>).Properties("Description")
Set lObj_Catalog = Nothing
Sub EnumFields()
Dim dbs As DAO.Database
Dim tbl As DAO.TableDef
Dim fld As DAO.Field
Dim sTb As String
Dim prp As DAO.Property
sTb = InputBox("Enter table name")
Set dbs = CurrentDb
Set tbl = dbs.TableDefs(sTb)
On Error Resume Next
For Each fld In tbl.Fields
Debug.Print fld.Name
Debug.Print " " & fld.Properties("Caption")
Debug.Print " " & fld.Properties("Description")
Next fld
End Sub