techsponge
Technical User
Access 2003
I am scanning barcodes into a bound text field.
After scanning is complete I want the user to click the finished button, which will count the serial numbers scanned in, and add that number to the existing inventory balance.
I added an unbound text box (qty) with the following code on the OnClick event of the "Finished" button to count the records, and it seems to work fine.
Me.Qty.Value = Me.RecordsetClone.RecordCount
Question is how do I update the Item Master table with the current count + the record count?
DoCmd.RunSQL "UPDATE T11_Item_Master set T11_57_StockTakeQty = T11_57_StockTakeQty + Forms!frmSerialNumEntry!qty;"
Thanks
I am scanning barcodes into a bound text field.
After scanning is complete I want the user to click the finished button, which will count the serial numbers scanned in, and add that number to the existing inventory balance.
I added an unbound text box (qty) with the following code on the OnClick event of the "Finished" button to count the records, and it seems to work fine.
Me.Qty.Value = Me.RecordsetClone.RecordCount
Question is how do I update the Item Master table with the current count + the record count?
DoCmd.RunSQL "UPDATE T11_Item_Master set T11_57_StockTakeQty = T11_57_StockTakeQty + Forms!frmSerialNumEntry!qty;"
Thanks