Here in this forum i find out how we can hide/unhide the qry's.
Can we do someyhing similar with forms-reports-modules?
The code for the qry's:
======================
Function HideQuerys()
Dim qry As QueryDef
Dim x As Integer
For Each qry In CurrentDb.QueryDefs
If Left(qry.Name, 1) <> "~" Then
If Not Left(qry.Name, 4) = "Usys" Then
qry.Name = "Usys" & qry.Name
End If
End If
Next
End Function
========================
Function UnHideQuerys()
Dim qry As QueryDef
Dim x As Integer
For Each qry In CurrentDb.QueryDefs
If Left(qry.Name, 1) <> "~" Then
If Left(qry.Name, 4) = "Usys" Then
qry.Name = Mid(qry.Name, 5)
End If
End If
Next
End Function