Welcome to SPN

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

Sign Up Now!

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.
     

Share This Page