Re: Querydef
- From: "JimP" <jpockmire@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 7 Jun 2008 06:18:11 -0500
Thanks, but I think this will give me a listing of the queries in an mdb.
What I want to do is list the tables and/or queries that comprise a single
query.
"Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx> wrote in message
news:ePffFXGyIHA.4772@xxxxxxxxxxxxxxxxxxxxxxx
OpenRecordset() on something like this:
SELECT MSysObjects.Name, MSysObjects.Type
FROM MSysObjects
WHERE (MSysObjects.Type In (1,4,5,6))
AND (Not (MSysObjects.Name Like "MSys*"
Or MSysObjects.Name Like "~*"))
ORDER BY MSysObjects.Name;
Alternatively, loop through the TableDefs and QueryDefs.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"JimP" <jpockmire@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:t9KdnXhGD7e8DdTVnZ2dnUVZ_tXinZ2d@xxxxxxxxxxxxxx
Is it possible to list all of the tables/queries in a query via code?
.
- Follow-Ups:
- Re: Querydef
- From: Allen Browne
- Re: Querydef
- References:
- Querydef
- From: JimP
- Re: Querydef
- From: Allen Browne
- Querydef
- Prev by Date: Re: execute code in personal.xls from Access
- Next by Date: Re: Sending e-kail through Access
- Previous by thread: Re: Querydef
- Next by thread: Re: Querydef
- Index(es):
Relevant Pages
|
Loading