Here is a function that I have used for testing that should give you what you are looking for.
Function catalogInfo()
'-- set reference to ADOX library
'- Microsoft ADO Ext. 2.6 for DDL and Security
'-- Microsoft ActiveX data objects 2.6 library also needed for ADO
Dim cg As New ADOX.Catalog
Dim tb As New ADOX.Table
Dim cn As ADODB.Connection
Dim cl As ADOX.Column
Set cg.ActiveConnection = CurrentProject.Connection
Set cg.ActiveConnection = CurrentProject.Connection
Set tb = cg.Tables("Categorys"
Debug.Print "table name = "; tb.Name
'''Set cg.Procedures("myproc" = "select * from customer"
Dim pp As Property
''Debug.Print "column = "; tb.Columns("Description".Properties("default".Value
''Exit Function
For Each cl In tb.Columns
Debug.Print "name = "; cl.Name
Debug.Print "type = "; cl.Type
For Each pp In cl.Properties
Debug.Print "property name = "; pp.Name
Debug.Print "property value = "; pp.Value
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.