Hi i have an update statment for some inventory, the update works fine. I have added two new columns to the table and was wondering how i could do an update and a select call in one query. I would like to find if Inventory.ABC and Inventory.DEF have values in the Inventory that was just updated, this is the sql that i'm currently using:
Code:
strSql = "UPDATE Inventory SET Available = Available + 1, Sold = Sold - 1 " _
& "FROM ReservedInventory JOIN Inventory " _
& "ON ReservedInventory.InventoryID = Inventory.InventoryID " _
& "WHERE ReservedInventory.ReservationID = " & intReservationId
objConn.Execute strSql