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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Statement Appears correct, but doesn't work.

Status
Not open for further replies.

markphsd

Programmer
Jun 24, 2002
758
US
What is wrong with this:

UPDATE tblOrders
INNER JOIN tblOrderPayment ON tblOrders.OrderID = tblOrderPayment.OrderID
SET tblOrderPayment.OrderDate = tblOrders.ScheduleDate

Mark P.
Providing Low Cost Powerful Point of Sale Solutions.
 
Couple things. Take a look at this...

Code:
UPDATE tblOrderPayment
SET    tblOrderPayment.OrderDate = tblOrders.ScheduleDate 
From   tblOrders
       INNER JOIN tblOrderPayment 
          ON tblOrders.OrderID = tblOrderPayment.OrderID

-George

"the screen with the little boxes in the window." - Moron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top