Guys am in a jam.
I am trying to update qty in stock in table products.
ProductID and stock take qty are numeric.
I just want to update the quantites where stock take qty is greater than 0.
Am using the following code but am getting an error.

All help appreciated
I am trying to update qty in stock in table products.
ProductID and stock take qty are numeric.
I just want to update the quantites where stock take qty is greater than 0.
Am using the following code but am getting an error.
Code:
Dim strSql As String
Dim s As Long
Dim d As Long
s = Me.StockTakeDetails!StockTakeQty
d = Me.StockTakeDetails!ProductID
strSql = "UPDATE Products " & _
"SET Products.qty_in_hand=" & s & _
" WHERE Products.product_id=" & d & " And s <> 0 & """
With DoCmd
DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
.SetWarnings False
.RunSQL strSql '
.SetWarnings True
End With
All help appreciated