Results 1 to 3 of 3
  1. #1
    sam813 is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2021
    Posts
    1

    Question How to update multiple tables at once in Query Design

    New to Access and I was wondering if it's possible to update multiple tables at once in design view. I saved the query but I have multiple tables to draw from and a need to export the files individually by month. Right now the only option is to drop down each table in the Table row and select the new table that I've dragged in from the left. Is there a faster way? I Googled for an answer and couldn't find anything.



    Attached is a screenshot for reference.

    Click image for larger version. 

Name:	Access Query.jpg 
Views:	24 
Size:	17.8 KB 
ID:	46885

  2. #2
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    You can't update multiple tables at once with a single ms access sql statement. But can call a bunch of individual sql statements consecutively in a vba procedure.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    in design view, maybe, depends on what you query actually is and whether criteria is required. If all you are changing is the table name, it sounds like your data isn't normalised since I would not expect the see the same field names in multiple tables (with the exception perhaps of foreign keys).

    So to the maybe - if you are selecting all fields and there is no criteria, there is a query property called 'output all fields'. Change this to yes then there is no need to put anything in the query grid. If you do have a single criteria, drag this field to the query grid, untick the show box, you will need to change the name of the table there before deleting the old table. But then, you might as well just export the table

    The other thing you can do is having created your query make multiple copies, editing each for another table. At least this way you do not need to edit at all

    Think you need to do some reading up on database normalisation, naming conventions and automation. If data isn't normalised you will be creating an unmanageable situation.

    EDIT: There is another way - alias your table (go to properties, select the table). Then go to sql view and change the table name once there

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

Similar Threads

  1. Update Query - Multiple Tables
    By gutenberg in forum Queries
    Replies: 2
    Last Post: 04-18-2017, 09:29 AM
  2. Update Query to multiple tables
    By Gregory23 in forum Queries
    Replies: 3
    Last Post: 04-10-2017, 02:20 AM
  3. Replies: 7
    Last Post: 10-16-2016, 01:16 PM
  4. Update Query from multiple Tables
    By nkhashab in forum Queries
    Replies: 3
    Last Post: 09-02-2014, 10:44 AM
  5. Update Query for multiple tables VBA
    By WickidWe in forum Queries
    Replies: 3
    Last Post: 12-18-2013, 05:50 PM

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