Results 1 to 2 of 2
  1. #1
    dv89k is offline Novice
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    1

    select statement with variable table name

    Hi all,

    I have a table containing list of table name.
    I want to use select statement with a variable list table name



    For example:

    select * from (select tableName from List)...

    Is it possible?
    pls help . THX

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    To the best of my knowledge, only if you build the query in VBA code. Often this is a sign of a non-normalized database. What do the different tables contain?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 11
    Last Post: 12-14-2010, 01:25 PM
  2. Help Using Variable in DLookup Statement
    By bcmarshall in forum Access
    Replies: 9
    Last Post: 12-02-2010, 12:44 AM
  3. select statement
    By jellybeannn in forum Access
    Replies: 5
    Last Post: 08-13-2010, 05:21 AM
  4. SELECT INTO variable table name
    By Ian P in forum Queries
    Replies: 2
    Last Post: 05-29-2010, 12:49 AM
  5. Replies: 5
    Last Post: 04-05-2010, 11:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums