JPaulo
Developer
- Local time
- Today, 13:39
- Joined
- Dec 21, 2009
- Messages
- 185
Hi all;
I hide tables so, and to hide all querys?
I hide tables so, and to hide all querys?
Code:
Dim Tb As TableDef
For Each Tb In CurrentDb.TableDefs
If Not Tb.Attributes And dbHiddenObject Then
Tb.Attributes = Tb.Attributes Or dbHiddenObject
End If
Next
MsgBox "All Tables have been occult. ", vbExclamation, "Aviso "
Else
For Each Tb In CurrentDb.TableDefs
If Tb.Attributes And dbHiddenObject Then
Tb.Attributes = Tb.Attributes Xor dbHiddenObject
End If
Next
MsgBox "All tables are visible. ", vbExclamation, "Aviso "
Exit Sub
End If