Results 1 to 4 of 4
  1. #1
    Gregory23 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    28

    Update Query to multiple tables

    Hi all,



    I would like to check if there is a way to update two tables from one source

    Also there are multiple fields to be updated, is it possible to update only the ones which have value in them ?

    In the below table Proforma invoice and order form descriptions need to update based on the material number


    The table in the center contains all the materials with description

    Click image for larger version. 

Name:	material.JPG 
Views:	11 
Size:	56.8 KB 
ID:	28203

    Thank you

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    your data isn't normalised - it is set up like a spreadsheet so probably not in one query. At best you will need multiple queries, but depends on what you want to update.

    What is it you want to update in each table?

  3. #3
    Gregory23 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    28
    I want to update the description fields

    The common reference is the material but as far as I checked the material joined to multiple fields cannot update the description

    below picture

    Click image for larger version. 

Name:	material.JPG 
Views:	10 
Size:	48.2 KB 
ID:	28204Click image for larger version. 

Name:	description.JPG 
Views:	10 
Size:	20.0 KB 
ID:	28205

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    You can't do it like that - you will need one query for each material and each table. so if each table has 20 materials, that means 40 queries.

    As previously stated, your data is not normalised - if it was, you would not need to update anything.

    A normalised invoice would usually consist of a minimum of two tables, one containing invoice header/footer data and one containing invoice line information. For each invoice header record there would be many invoice line records, one for each material - and the material data would just be the ID - which would then be linked to your materials table to find the description.

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

Similar Threads

  1. Replies: 0
    Last Post: 09-13-2016, 07:31 AM
  2. Update Query from multiple Tables
    By nkhashab in forum Queries
    Replies: 3
    Last Post: 09-02-2014, 10:44 AM
  3. Replies: 6
    Last Post: 08-17-2014, 06:14 PM
  4. Update Query for multiple tables VBA
    By WickidWe in forum Queries
    Replies: 3
    Last Post: 12-18-2013, 05:50 PM
  5. Replies: 10
    Last Post: 07-12-2011, 11:09 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