C
CK NG
Hi All,
I having a problem with using the recordset .MoveNext in access.
I have a form and using Combo Box to select and update data to certain
table. But i having a problem with using .MoveNext function. Eventhough i
able to detect the location where the data should be updated. When i use the
..MoveNext Function to access it, it always updated the wrong row of data.
Can anyone advice how to solve this problem? Thanks.
Here is the partial of my code:
'ProductValue is location for the data wish to update.
rsProducts.MoveFirst
For I = 1 To (ProductValue - 1)
rsProducts.MoveNext
'MsgBox "Product Value", vbOKOnly, I
Next I
rsProducts.Edit
rsProducts!StockUnit = UpdatedStockUnit
rsProducts.Update
rsProducts.Close
Your help is very appreciated. Thanks.
Best Regards,
C.K.
(e-mail address removed)
I having a problem with using the recordset .MoveNext in access.
I have a form and using Combo Box to select and update data to certain
table. But i having a problem with using .MoveNext function. Eventhough i
able to detect the location where the data should be updated. When i use the
..MoveNext Function to access it, it always updated the wrong row of data.
Can anyone advice how to solve this problem? Thanks.
Here is the partial of my code:
'ProductValue is location for the data wish to update.
rsProducts.MoveFirst
For I = 1 To (ProductValue - 1)
rsProducts.MoveNext
'MsgBox "Product Value", vbOKOnly, I
Next I
rsProducts.Edit
rsProducts!StockUnit = UpdatedStockUnit
rsProducts.Update
rsProducts.Close
Your help is very appreciated. Thanks.
Best Regards,
C.K.
(e-mail address removed)