+ Reply to Thread
Results 1 to 7 of 7

Obtain Access Table Names via Excel

  1. #1
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Question Obtain Access Table Names via Excel

    Hi all,

    I am trying to create a database Puller! it will extract data using SQL via the medium of Excel lol without the user having any knowledge of SQL.

    However i really need to obtain all the table names from a given Database.
    The database' filepath is located in Cell B2 so given that can anyone help me with the code?

    I'll get ya started lol:

    Please Login or Register  to view this content.
    That's all i got lol!!!

    I'm thinking it could make use of this SQL Script:
    Please Login or Register  to view this content.
    but thats something i use in Oracle Developer to obtain table names

    please hep & Ta for reading my thread
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  2. #2
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Talking Eureka!!

    I actually did it on my own!!!

    get in for those who care here's how:

    Please Login or Register  to view this content.
    Damn That feels so good!!!! get in!!!

  3. #3
    Forum Contributor Stuie's Avatar
    Join Date
    09-17-2006
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    432
    always feels better to work it out yourself, nice one

  4. #4
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Talking Cheers

    Nice one Stuie!!!

  5. #5
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Further info

    You actually end up getting these weird other tables too so i re-wrote it to exlcude them. Here it is:

    Please Login or Register  to view this content.
    HTH

  6. #6
    Forum Contributor Stuie's Avatar
    Join Date
    09-17-2006
    Location
    Suffolk, UK
    MS-Off Ver
    Excel 2003/2007
    Posts
    432
    i will keep this post in mind as have a project coming up at work soon where i will need to extract a couple of data tables, i would normally just use a data import but i would rather code everything that way you have more control, so you given me a great idea for that

  7. #7
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Cool

    Great

    Glad i could help maybe this will help to:

    it extracts all of the recordsets from a given Table:

    Please Login or Register  to view this content.
    or there is this one which allows you to specify a field and a criteria in that field using some SQL:

    Please Login or Register  to view this content.
    HTH

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1