L
Les
I am trying to use the following code to update firld "numQuantity" but
although it runs through and I am picking up the correct value in
"intTotalQty" it does not change the table values.
Any advise please?
Les
Dim strsql As String
Dim Totalit As String
If DCount("[strProduct_Code]", "tblOrder_details", "[strProduct_Code] = '" &
Forms![frmOrder_Form]![strProductCode] & "' ") > 0 Then
intTotalQty = DLookup("[numQuantity]", "tblOrder_Details",
"[strProduct_Code] = Forms!frmOrder_Form!strProduct") + [numNumber]
strsql = "UPDATE tblOrder_details SET numQuantity" = intTotalQty & _
"WHERE strProduct_Code = strProduct"
although it runs through and I am picking up the correct value in
"intTotalQty" it does not change the table values.
Any advise please?
Les
Dim strsql As String
Dim Totalit As String
If DCount("[strProduct_Code]", "tblOrder_details", "[strProduct_Code] = '" &
Forms![frmOrder_Form]![strProductCode] & "' ") > 0 Then
intTotalQty = DLookup("[numQuantity]", "tblOrder_Details",
"[strProduct_Code] = Forms!frmOrder_Form!strProduct") + [numNumber]
strsql = "UPDATE tblOrder_details SET numQuantity" = intTotalQty & _
"WHERE strProduct_Code = strProduct"