I have two tables InventoryT and NewInventoryT plus a query NewInventoryQ. Last column in the query totals current inventory on hand and new inventory that is entered into a column through a form (NewInventoryF). I have put a button on this form that uses an update query that takes these new totals from the totals column and updates the [Quantity] column on InventoryT.
This works to a point. My update query only takes the value in the first field in the [Total] column of NewInventoryQ and enters the same value into the entire column of the [Quantity] column of InvetoryT.
I'll be adding more functions to this, but below is the code in my button as of now.
Dim cpyString As String
Private Sub UpdateInventoryT_Click()
cpyString = "UPDATE InventoryT SET Quantity = Total"
DoCmd.RunSQL cpyString
End Sub