J
Jim Pockmire
Can you help me clean up the code below? I expect it to hide the named table
and it doesn't.
Function HideTable(acTable As String)
Dim DB As DAO.Database
Dim tdf As DAO.TableDef
Set DB = CurrentDb
Set tdf = DB.TableDefs(acTable)
tdf.Attributes = tdf.Attributes And dbHiddenObject
End Function
Ps, I do want care to use "Application.SetHiddenAttribute..."
and it doesn't.
Function HideTable(acTable As String)
Dim DB As DAO.Database
Dim tdf As DAO.TableDef
Set DB = CurrentDb
Set tdf = DB.TableDefs(acTable)
tdf.Attributes = tdf.Attributes And dbHiddenObject
End Function
Ps, I do want care to use "Application.SetHiddenAttribute..."