A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

query to get table and field information



 
 
Thread Tools Display Modes
  #1  
Old July 19th, 2006, 01:12 PM posted to microsoft.public.access,microsoft.public.access.queries,microsoft.public.access.tablesdbdesign
Graham
external usenet poster
 
Posts: 3
Default query to get table and field information

Hi

I'd like to be able to create a query in MS Access (Office XP version) that
has the following output:
- list of tables: table name, primary key, etc
- list of fields: field name, type, size, etc

I realise that the analysis tool does this, but the output into Word is not
easily usuable - as part of the design process I'd like to be able to
manipulate the output in Excel and Visio, so a query would be ideal.

Please advise me on how to do this. I'm reasonably experienced at creating
straight-forward queries, but I'm a programming novice, willing to try, but
please don't assume I'll fill in any gaps!

Many thanks.


  #2  
Old July 19th, 2006, 01:18 PM posted to microsoft.public.access,microsoft.public.access.queries,microsoft.public.access.tablesdbdesign
Jamie Collins
external usenet poster
 
Posts: 1,705
Default query to get table and field information


Graham wrote:
I'd like to be able to create a query in MS Access (Office XP version) that
has the following output:
- list of tables: table name, primary key, etc
- list of fields: field name, type, size, etc


See this recent thread on the same subject:

http://groups.google.com/group/micro...87a2c378f92069


Jamie.

--

  #3  
Old July 19th, 2006, 01:33 PM posted to microsoft.public.access,microsoft.public.access.queries,microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default query to get table and field information

You can get a list of the tables with this query:
SELECT MsysObjects.Name FROM MsysObjects
WHERE (([Type] IN (1,4,6)) AND ([Name] Not Like "~*")
AND ([Name] Not Like "MSys*"))
ORDER BY MsysObjects.Name;

You can list the fields programmatically as shown in this code:
http://allenbrowne.com/func-06.html

Or if you want a better documenter, Jeff Conrad has one he
http://home.bendbroadband.com/conrad.../csdtools.html

--
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.

"Graham" wrote in message
...

I'd like to be able to create a query in MS Access (Office XP version)
that has the following output:
- list of tables: table name, primary key, etc
- list of fields: field name, type, size, etc

I realise that the analysis tool does this, but the output into Word is
not easily usuable - as part of the design process I'd like to be able to
manipulate the output in Excel and Visio, so a query would be ideal.

Please advise me on how to do this. I'm reasonably experienced at creating
straight-forward queries, but I'm a programming novice, willing to try,
but please don't assume I'll fill in any gaps!



  #4  
Old July 19th, 2006, 08:23 PM posted to microsoft.public.access,microsoft.public.access.queries,microsoft.public.access.tablesdbdesign
David F. Cox
external usenet poster
 
Posts: 25
Default query to get table and field information

Way back in the 70's I worked on an IBM DBOMP database that had been built
to include a data dictionary. I am disappointed that Access has not yet got
a proper exposed one.

David F. Cox

"Graham" wrote in message
...
Hi

I'd like to be able to create a query in MS Access (Office XP version)
that has the following output:
- list of tables: table name, primary key, etc
- list of fields: field name, type, size, etc

I realise that the analysis tool does this, but the output into Word is
not easily usuable - as part of the design process I'd like to be able to
manipulate the output in Excel and Visio, so a query would be ideal.

Please advise me on how to do this. I'm reasonably experienced at creating
straight-forward queries, but I'm a programming novice, willing to try,
but please don't assume I'll fill in any gaps!

Many thanks.




 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Table Query - Sorting Errors Fred Running & Setting Up Queries 19 February 22nd, 2006 09:41 PM
Toolbars, Drop-Down Menus Rick New Users 1 September 21st, 2005 11:17 AM
Multiple Options Group Patty Stoddard Using Forms 19 August 4th, 2005 02:30 PM
Design help, please SillySally Using Forms 27 March 6th, 2005 04:11 AM
Big number gives error! Sara Mellen Running & Setting Up Queries 8 October 11th, 2004 02:48 AM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.