L
Les
I am using the following Insert code which inserts data into the table
"tblOrder_Details" which is then displayed in a datasheet subform.
What I need to do is if the data already exists then take a value from
Forms![frmOrder_Form]![numNumber] (Unbound) and add it to the value already
in [numQuantity] in the "tblOrder_Details" thefore increasing the amount
ordered without inserting further lines.
The data is matched on the [strProduct_Code] of "tblOrder_Details"
strsql = "Insert Into tblOrder_Details
(strProduct_Code,strProduct_Description,curRetail_Price,numSize,numQuantity,
strproduct_Identifyer,curNet_SSP_Price,id) Values ('" & Me!strProduct _
& "','" & Me!strDescription _
& "' ,'" & curGross _
& " ','" & strSize _
& "','" & numNumber _ 'Add this value to [numQuantity] in the table
"tblOrder_Details"
& "','" & strGoods_Category _
& "','" & curNet_SSP_Price _
& "','" & id & "')"
Any help greatfully recieved.
Les.
"tblOrder_Details" which is then displayed in a datasheet subform.
What I need to do is if the data already exists then take a value from
Forms![frmOrder_Form]![numNumber] (Unbound) and add it to the value already
in [numQuantity] in the "tblOrder_Details" thefore increasing the amount
ordered without inserting further lines.
The data is matched on the [strProduct_Code] of "tblOrder_Details"
strsql = "Insert Into tblOrder_Details
(strProduct_Code,strProduct_Description,curRetail_Price,numSize,numQuantity,
strproduct_Identifyer,curNet_SSP_Price,id) Values ('" & Me!strProduct _
& "','" & Me!strDescription _
& "' ,'" & curGross _
& " ','" & strSize _
& "','" & numNumber _ 'Add this value to [numQuantity] in the table
"tblOrder_Details"
& "','" & strGoods_Category _
& "','" & curNet_SSP_Price _
& "','" & id & "')"
Any help greatfully recieved.
Les.