Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding Database Objects

Status
Not open for further replies.

fabby1

Technical User
Mar 9, 2004
206
GB
Hi

In the Design windows I usually right click go to properties and click the hidden button.

Is there a way to do this via code for ALL database objects

Regards

Phil
 
Hi

Try interating through the collection setting .hidden to true



Dim frm as Form

for each frm in Forms
frm.hidden = true
next

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Hi

Try interating through the collection setting .visible to true



Dim frm as Form

for each frm in Forms
frm.visible = true
next

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Ken

Thanks for the reply

Maybe I didn't explain myself properly

I want to do this for all Database Object

e.g. Table, Forms, Queries, Report etc.

SO that they are not visible in the Database window

Regards

Phil
 
while in VBE (Alt+F11) open the Object browser (F2) and search it for: AllTables, AllForms, AllQueries, AllReports etc.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
There's a start here thread181-955399 (I think 2000+ version)

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top