Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to update records when there is a multiple join? 1

Status
Not open for further replies.

idbands

Technical User
Oct 13, 2007
16
I have two tables a, b. Table A has a bunch of data. Table B has nothing in it (the two fields in the table are Order Number and Notes).

My query pulls a bunch of data from A and then you can type in a comment in the Notes field that then gets written to table B.

My query looks like this:
Select blah, blah, blah, blah, Notes
FROM RIGHT JOIN A ON b.OrderID=a.OrderID

And I can add notes into the Notes field when in Datasheet view and the notes are saved to table B.

My problem comes in when I also need to see data from table C too.

If my query looks like this:
Select blah, blah, blah, blah, Notes
FROM (C inner join A on C.orderid = A.orderid) left join ON b.OrderID=a.OrderID

Then I can't write notes to the Notes field in the Datasheet view anymore. Is there another way of doing this so I can still write data to table B?

Thanks in advance!


 
Thanks, Duane. That simple question totally made me realize what I was doing wrong. I should have linked everything by OrderItemID instead of OrderID.

Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top