PC Review


Reply
Thread Tools Rate Thread

Database Documentation - List of Queries

 
 
=?Utf-8?B?TVNNaWNoZWxsZQ==?=
Guest
Posts: n/a
 
      26th Jan 2006
I am trying to get a list of all my queries so that I can create training
documentation without having to retype all the query names...is there a way
to do this (other than screen print)? I have about 40 queries.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3ByaW5rcw==?=
Guest
Posts: n/a
 
      26th Jan 2006
MSMichelle,

One way is to loop through the QueryDefs collection, and print them out to
the Immediate Window (accessed by Ctrl-G). Assign the following code to the
OnClick procedure of a temporary command button and press.

Dim db As Database
Dim qry As QueryDef
Set db = CurrentDb()

For Each qry In db.QueryDefs
Debug.Print qry.Name
Next qry
Set db = Nothing

Hope that helps.
Sprinks




"MSMichelle" wrote:

> I am trying to get a list of all my queries so that I can create training
> documentation without having to retype all the query names...is there a way
> to do this (other than screen print)? I have about 40 queries.

 
Reply With Quote
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      26th Jan 2006
In a query:

SELECT MSysObjects.Name
FROM MSysObjects
WHERE MSysObjects.Name Not Like "~*"
AND MSysObjects.Type = 5
ORDER BY MSysObjects.Name;

--
Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"MSMichelle" wrote:

> I am trying to get a list of all my queries so that I can create training
> documentation without having to retype all the query names...is there a way
> to do this (other than screen print)? I have about 40 queries.

 
Reply With Quote
 
=?Utf-8?B?TVNNaWNoZWxsZQ==?=
Guest
Posts: n/a
 
      26th Jan 2006
you are my hero! thank you thank you

"Jerry Whittle" wrote:

> In a query:
>
> SELECT MSysObjects.Name
> FROM MSysObjects
> WHERE MSysObjects.Name Not Like "~*"
> AND MSysObjects.Type = 5
> ORDER BY MSysObjects.Name;
>
> --
> Jerry Whittle
> Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
>
>
> "MSMichelle" wrote:
>
> > I am trying to get a list of all my queries so that I can create training
> > documentation without having to retype all the query names...is there a way
> > to do this (other than screen print)? I have about 40 queries.

 
Reply With Quote
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      26th Jan 2006

Here's a list of some of the other types:
1 TABLE
5 QUERY
6 TABLE LINKED
8 RELATIONSHIPS
-32756 PAGE
-32761 MODULE
-32764 REPORT
-32766 MACRO
-32768 FORM

--
Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"MSMichelle" wrote:

> you are my hero! thank you thank you
>
> "Jerry Whittle" wrote:
>
> > In a query:
> >
> > SELECT MSysObjects.Name
> > FROM MSysObjects
> > WHERE MSysObjects.Name Not Like "~*"
> > AND MSysObjects.Type = 5
> > ORDER BY MSysObjects.Name;
> >
> > --
> > Jerry Whittle
> > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> >
> >
> > "MSMichelle" wrote:
> >
> > > I am trying to get a list of all my queries so that I can create training
> > > documentation without having to retype all the query names...is there a way
> > > to do this (other than screen print)? I have about 40 queries.

 
Reply With Quote
 
=?Utf-8?B?U3ByaW5rcw==?=
Guest
Posts: n/a
 
      26th Jan 2006
Jerry,

Thanks; this is a better way.

Sprinks

"Jerry Whittle" wrote:

>
> Here's a list of some of the other types:
> 1 TABLE
> 5 QUERY
> 6 TABLE LINKED
> 8 RELATIONSHIPS
> -32756 PAGE
> -32761 MODULE
> -32764 REPORT
> -32766 MACRO
> -32768 FORM
>
> --
> Jerry Whittle
> Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
>
>
> "MSMichelle" wrote:
>
> > you are my hero! thank you thank you
> >
> > "Jerry Whittle" wrote:
> >
> > > In a query:
> > >
> > > SELECT MSysObjects.Name
> > > FROM MSysObjects
> > > WHERE MSysObjects.Name Not Like "~*"
> > > AND MSysObjects.Type = 5
> > > ORDER BY MSysObjects.Name;
> > >
> > > --
> > > Jerry Whittle
> > > Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
> > >
> > >
> > > "MSMichelle" wrote:
> > >
> > > > I am trying to get a list of all my queries so that I can create training
> > > > documentation without having to retype all the query names...is there a way
> > > > to do this (other than screen print)? I have about 40 queries.

 
Reply With Quote
 
Albert D.Kallal
Guest
Posts: n/a
 
      27th Jan 2006
There is a built in database documenter..and you don't need to wite any
code.

Toos->analyse->documenter..

The above will printout all you need....


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)
http://www.members.shaw.ca/AlbertKallal


 
Reply With Quote
 
=?Utf-8?B?U3ByaW5rcw==?=
Guest
Posts: n/a
 
      27th Jan 2006
While that's true, Albert, the documeter includes much more information than
is often required. If a simple list is all that's required, the SQL Jerry
provided is quite handy.

Sprinks

"Albert D.Kallal" wrote:

> There is a built in database documenter..and you don't need to wite any
> code.
>
> Toos->analyse->documenter..
>
> The above will printout all you need....
>
>
> --
> Albert D. Kallal (Access MVP)
> Edmonton, Alberta Canada
> (E-Mail Removed)
> http://www.members.shaw.ca/AlbertKallal
>
>
>

 
Reply With Quote
 
=?Utf-8?B?RGF2ZSBG?=
Guest
Posts: n/a
 
      4th Aug 2006
Is there any way to modify Jerry's code to include the SQL of the query?

I'd be interested in this less for training purposes and more for
documentation purposes. (As to built in documentation tool: I think it's an
unwieldy piece of crap.)

Thanks,

Dave

"Sprinks" wrote:

> While that's true, Albert, the documeter includes much more information than
> is often required. If a simple list is all that's required, the SQL Jerry
> provided is quite handy.
>
> Sprinks
>
> "Albert D.Kallal" wrote:
>
> > There is a built in database documenter..and you don't need to wite any
> > code.
> >
> > Toos->analyse->documenter..
> >
> > The above will printout all you need....
> >
> >
> > --
> > Albert D. Kallal (Access MVP)
> > Edmonton, Alberta Canada
> > (E-Mail Removed)
> > http://www.members.shaw.ca/AlbertKallal
> >
> >
> >

 
Reply With Quote
 
dbahooker@hotmail.com
Guest
Posts: n/a
 
      7th Aug 2006
sp_helpText 'myqueryname'

or if you're a baby and you still use MDB; you can use the .SQL method
of the querydef object




Dave F wrote:
> Is there any way to modify Jerry's code to include the SQL of the query?
>
> I'd be interested in this less for training purposes and more for
> documentation purposes. (As to built in documentation tool: I think it's an
> unwieldy piece of crap.)
>
> Thanks,
>
> Dave
>
> "Sprinks" wrote:
>
> > While that's true, Albert, the documeter includes much more information than
> > is often required. If a simple list is all that's required, the SQL Jerry
> > provided is quite handy.
> >
> > Sprinks
> >
> > "Albert D.Kallal" wrote:
> >
> > > There is a built in database documenter..and you don't need to wite any
> > > code.
> > >
> > > Toos->analyse->documenter..
> > >
> > > The above will printout all you need....
> > >
> > >
> > > --
> > > Albert D. Kallal (Access MVP)
> > > Edmonton, Alberta Canada
> > > (E-Mail Removed)
> > > http://www.members.shaw.ca/AlbertKallal
> > >
> > >
> > >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
>> List of database queries Jonathan Microsoft Access VBA Modules 4 9th Dec 2009 08:53 PM
exporting a list of queries in a database =?Utf-8?B?c2xvZGlicw==?= Microsoft Access External Data 1 30th Mar 2007 03:04 PM
ANN: Documentrix - Source Code Documentation/Database Documentation Tool livewire Microsoft VB .NET 0 10th Sep 2003 11:26 AM
ANN: Documentrix - Source Code Documentation/Database Documentation Tool livewire Microsoft Dot NET 0 10th Sep 2003 11:25 AM
ANN: Documentrix - Source Code Documentation/Database Documentation Tool livewire Microsoft C# .NET 0 10th Sep 2003 11:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:37 AM.