Results 1 to 7 of 7
  1. #1
    prag is offline Novice
    Windows Vista Access 2000
    Join Date
    Sep 2009
    Posts
    13

    Linking built queries to new tables

    I have a set of tables and queries built for those tables. Now I'll be recieving another 50 tables that contain similar data. I can't use the append query because the table would be really big and it woudn't be efficent. Is there a way I can put all those tables in lets say five tables in different databases and yet use the same set of queries I have created to get the results? Help will be much appreciated.

  2. #2
    Brian62 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2009
    Posts
    147
    You can create another database and link tables to your current DB.

  3. #3
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    Your problem is going to be naming conventions. If your existing queries use a table called TblData in Back End 1 and you have another table called TblData in Back End 2 if you try to link both tables one will remain as TblData but the second on will become TblData1. This means that your original query will only work with TblData.

    To get around this problem rename the first table TblData to TblDataA then link the second TblData and Rename it TblDataB and so on.

    Next Create a union query called TblData

    Select * From TblDataA
    Union All
    Select * From TblDataB

    Etc

    This way your queries will always be looking at all of the tables all of the time.

    The convention is correct, however whether it works for you is dependant on your tables being the same in structure and data types. What you are actually doing is stacking the data one on top of each other, however the more records they are in each table will reflect on the overall performance.

    David

    David

  4. #4
    prag is offline Novice
    Windows Vista Access 2000
    Join Date
    Sep 2009
    Posts
    13
    Ok I understand what you are saying. However, I have elven complex queries based of the that particular table and other queries I have developed using that table as a data source. David Will the process you mentioned above will run all the queries incorporating the new data. And another question is do i have to use the union query as my data source for the query?

  5. #5
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    The union query is a simulation of a collection of tables into one big one. As long as yourt naming conventions don't conflict with the originals then you should be all right. You need to go backwards through you queries until you hit the query that is not built on an underlying query but as the source table.

    David

  6. #6
    prag is offline Novice
    Windows Vista Access 2000
    Join Date
    Sep 2009
    Posts
    13
    Ok to make sure that I'm getting you accurately. I am using one query from the source table and all other queries are based off that first query. All I need to do now is change the data source for that first query to the union query that I just built right? I am talking about huge records here so I need to save time that why I need to be really sure what I'm doing.

  7. #7
    dbDamo is offline Novice
    Windows XP Access 2000
    Join Date
    May 2009
    Posts
    10
    That is correct prag. Change the source of the first query from the table to your union query.

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

Similar Threads

  1. Linking two tables
    By nitsua0491 in forum Forms
    Replies: 2
    Last Post: 10-02-2009, 07:48 AM
  2. Linking large number of forms and tables
    By jlcaviglia-harris in forum Forms
    Replies: 2
    Last Post: 04-17-2009, 09:19 AM
  3. Linking Tables?
    By briancb2004 in forum Access
    Replies: 0
    Last Post: 09-29-2008, 01:14 PM
  4. Resource for using linking tables with forms?
    By narayanis in forum Forms
    Replies: 5
    Last Post: 05-18-2008, 04:11 PM
  5. Linking tables and forms
    By vgatell in forum Access
    Replies: 0
    Last Post: 02-10-2007, 01:37 PM

Tags for this Thread

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