Identifying Hidden Queries

Shankspony

New Member
Joined
Mar 24, 2014
Messages
8
Good morning all...

I am attempting to programmatically identify queries hidden from view in MS Access 2010. I understand that there is a hidden attribute (accessibly through the UI by bringing up the properties of the query and VBA with GetHiddenAttribute). That I can handle.

There is another setting which is 'hide from this group' (right click menu) and I can't seem to find the property or attribute with VBA. I have looked extensively through the object hierarchies and local variable/object components too. Is there any wisdom out there on this subject?

I am hoping this is one of those instances where I just don't know the word/terminology to search for.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
perhaps this will get you on the right track ...

.1. make a new query
.2. switch to SQL view
.3. paste this SQL:

SELECT DISTINCT MSysObjects.Name AS QryName, MSysObjects.Flags, MSysObjects.Type
FROM MSysObjects INNER JOIN MSysQueries ON MSysObjects.Id = MSysQueries.ObjectId
ORDER BY MSysObjects.Name;
 
Upvote 0
Thank you, Strive... I wish it did but I can't find discernible information relating to the visibility of the querydef in the group.
 
Upvote 0
I even tried toggling the hidden status of some of the queries to compare results before and after. No changes noticed. I was hoping Type 5 with flag would be the winner but it isn't.
 
Upvote 0

Forum statistics

Threads
1,216,082
Messages
6,128,709
Members
449,464
Latest member
againofsoul

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top