Hi,
I just wonder to know the feasibility and recommendations of to hide the FE DB objects at opening of login form although they are Nav. is disabled and ribbons too.
I used this code for tables and works fantastic but is it feasible option and if so then can we hide all other objects and how?
Code:
Private Sub Form_Open(Cancel As Integer)
Dim db As DAO.Database
Dim tdf As DAO.TableDef
Set db = CurrentDb
'Loop through the TableDefs Collection.
For Each tdf In db.TableDefs
tdf.Attributes = acHidden 'Hide Tables (Change acHidden to acNormal to unhide all tables)
Next tdf
End Sub