G
Guest
Hello,
I was wondering if there is a way to un-hide tables using code.
I know it can be done via DAO, but I would know it this may be accomplished
via ADOX.
I have wrote this code to discover which property should I use:
Dim cat As New ADOX.Catalog
Set cat.ActiveConnection = CurrentProject.Connection
With cat
For Each Table In .Tables
If Table.Type = "table" Then
For Each Property In Table.Properties
MsgBox Property.Name & "---> " & Property.Value
Next
End If
Next
End With
I found a property named:
"Jet OLEDB: Table Hidden In Access", its value was setted=true. I figured
this was what I needed, but...
If I code something like:
table.properties("Jet OLEDB: Table Hidden In Access").value=true
it wont work.
Why?
thanks
rocco
I was wondering if there is a way to un-hide tables using code.
I know it can be done via DAO, but I would know it this may be accomplished
via ADOX.
I have wrote this code to discover which property should I use:
Dim cat As New ADOX.Catalog
Set cat.ActiveConnection = CurrentProject.Connection
With cat
For Each Table In .Tables
If Table.Type = "table" Then
For Each Property In Table.Properties
MsgBox Property.Name & "---> " & Property.Value
Next
End If
Next
End With
I found a property named:
"Jet OLEDB: Table Hidden In Access", its value was setted=true. I figured
this was what I needed, but...
If I code something like:
table.properties("Jet OLEDB: Table Hidden In Access").value=true
it wont work.
Why?
thanks
rocco