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!

Help with making this query updateable with 3 joins.

Status
Not open for further replies.

idbands

Technical User
Oct 13, 2007
16
I'm really struggling with this. I have this query:

SELECT OrderNumber, Code, dbo_OrderItems.Status
FROM [Picking], dbo_OrderItems, dbo_Orders
WHERE ((clng([Picking].CONumber)=dbo_Orders.OrderNumber) And (([Picking].ItemNo)=dbo_OrderItems.Code) And (([Picking].isShort)=-1) And (([Picking].lastPickedDateTime)>=#12/15/2008#) And ((dbo_OrderItems.OrderID)=dbo_Orders.OrderID)) And dbo_OrderItems.Status<>"Backordered";


To put it in English, I have a order database with two basic tables: Orders and OrderItems. Orders table holds the OrderNumber and primary key between Orders and OrderItems is OrderID. Then I have a seperate picking system that records items picked by OrderNumber and also "shorts" which are backordered items. I want to match the "Shorts" from the picking system to the OrderItems database and update the status in the OrderItems table with a status of "Backordered" when a short exists. I want this to be a Select query where I can manually update the status field by typing in the word "Backordered" but when I try to type in the Status field, it won't let me due to the query not being updatable I think??

How do I accomplish my goal?

Thank you!
Kelly
 
I should also mention that the Code field is a lovely Memo field so when I do an inner join on the Code field, I always get an error about how I can't join to a memo field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top