Granny Spitz via AccessMonster.com wrote:
> Jim Moberg wrote:
>
>>I was wondering if it's possible to query the list of queries that show up in
>>an Access database. We have a lot of queries in our database and it would be
>>easy to check for the existence of a query by looking for something like
>>QryEmp*.
>
>
> Turn on system objects, Tools | Options | View | Show System Objects. Open
> the MSysObjects table and search or filter the Name column for whatever query
> you want.
>
Why are the MSys tables, undocumented and subject to change between
versions, used to get this information? Isn't there a document object
in the containers collection that's supposed to be used to get this
information? Are they used because it's easier to use the MSys tables
directly in a query rather than to create a User-Defined Function (UDF)
in order to access the collection since the collection belongs to a
database object? Does the document object have other limitations or
bugs that the MSys tables do not? This looks to me like another case of
adopting bad practices for the sake of convenience. I don't need a list
of queries much so please excuse my ignorance if I'm missing something
obvious.
James A. Fortune
(E-Mail Removed)