Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

query to output table design and field details

Discussion in 'Information Technology' started by Don Grainger, Jul 28, 2006.

  1. Don Grainger

    Don Grainger
    Expand Collapse
    Guest

    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!

    Sorry if this gets posted twice - I tried posting in my own name but my
    posting didn't appear, so I've asked a mate to post for me!

    Many thanks.
     
  2. Loading...

    Similar Threads Forum Date
    Query about Jhatka Meat by Shooting in Head Sikh Sikhi Sikhism Aug 26, 2011
    Who is a sikh? A non sikh friend's query!! Sikh Sikhi Sikhism Apr 30, 2010
    General Query Hard Talk Sep 4, 2008
    Power of pauri's in Japji Sahib query Sikh Sikhi Sikhism Aug 17, 2006
    Sikhism a query Book Reviews & Editorials Aug 2, 2005

  3. Allen Browne

    Allen Browne
    Expand Collapse
    Guest

    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 here:
    http://home.bendbroadband.com/conradsystems/accessjunkie/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.

    "Don Grainger" <donger69@hotmail.co.uk> wrote in message
    news:44be2aa9$0$12054$da0feed9@news.zen.co.uk...
    >
    > 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!
    >
    > Sorry if this gets posted twice - I tried posting in my own name but my
    > posting didn't appear, so I've asked a mate to post for me!
    >
    > Many thanks.
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page