UpdateQuery for Row Update To Another Table

Gd Day, I am trying to determine if there's a way for a Tbl1 query to run an individual row update to a linked Table2 based on matched row records from the table1 ?
Both Tables are structurally identical, fields data of both Tables "Client", "OrderDate" and "ProductNo" always identical when replicated.
Only Field1 to 3 are constant updating in Tbl1 daily, new client name always enter into Tbl2 only, therefore in this case, delete and append to make up for the update to Tbl 2 is out of the question.

Tbl1                                                                                            Tbl2
Client    OrderDate  ProductNo  Fld1   Fld2    Fld3             Client    OrderDate  ProductNo  Fld1   Fld2    Fld3
Client1  10-01-2018   10-1234A    A       100       X                Client1   10-01-2018   10-1234A                                              
Client2  10-02-2018   25-1857C    B       330       Y                Client2   10-02-2018   25-1857C                                                
Client3  10-03-2018   3320E-A1    C       550       Z                Client3    10-03-2018   3320E-A1                                                
                                                                                                    Client4
                                                                                                    Client5

Tbl2 Result after update query update from tbl1
Client           OrderDate      ProductNo      Fld1       Fld2          Fld3
Client1        1-Oct-2018      10-1234A          A           100             X
Client2        2-Oct-2018      25-1857C          B           330             Y
Client3        3-Oct-2018      3320E-A1          C           550             Z
Client4
Client5


Please note, the row update criteria for records are "Client", "OrderDate" and "ProductNo", Fields pending update in Tbl2 are actually way more then 3 as shown as example
The Update Query must be able to find the match of "Client", "OrderDate" and "ProductNo" in tbl2 to update Field 1 to 3+

Appreciate if anyone able to provide solutions to obtain the result.

Thx
kay sooAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
You can use this query:

UPDATE 
    Tbl1 
INNER JOIN 
    Tbl2 
    ON 
        (Tbl1.Client = Tbl2.Client) 
        AND 
        (Tbl1.OrderDate = Tbl2.OrderDate) 
        AND 
        (Tbl1.ProductNo = Tbl2.Product) 
SET 
    Tbl2.Fld1 = Tbl1!Fld1, 
    Tbl2.Fld2 = Tbl1!Fld2, 
    Tbl2.Fld3 = Tbl1!Fld3;

Open in new window

This will require a unique index on the fields Client-OrderDate-ProductNo
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kay sooAuthor Commented:
It works great, thx
0
Gustav BrockCIOCommented:
You are welcome!
0
awking00Information Technology SpecialistCommented:
You could also have used a merge -
merge into tbl2 t2
using tbl1 t1
on (t1.client = t2.client and t1.orderdate = t2.orderdate and t1.productno = t2.productno)
when matched then
update set
t2.fld1 = t1.fld1,
t2.fld2 = t1.fld2,
t2.fld3 = t1.fld3;
0
Gustav BrockCIOCommented:
Not in Access SQL.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.