اخى يمكنك مراجعة هذا الرابط
منتديات الدعم من مطورى الاكسس ميكروسوفت
https://social.msdn.microsoft.com/Forums/office/en-US/25d9dafd-b446-40ba-8dbd-a0efa983f2ff/how-to-programatically-hide-a-querydef?forum=accessdev
Const strcQueryName As String = "QueryName"
Dim fIsHidden As Boolean
' To determine if the query is hidden:
fIsHidden = GetHiddenAttribute(acQuery, strcQueryName)
Debug.Print fIsHidden
' To show the query:
SetHiddenAttribute acQuery, strcQueryName, False
' To hide the query:
SetHiddenAttribute acQuery, strcQueryName, True