Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21839

Flex Grid "Edit" code not working

$
0
0
Everytime I click on the "Edit" button of my flex grid, an error occurs which says : "Run time error 2147217887 (80040e21). Multiple step operation generated errors. check each status value"


Heres the "edit" code im using:
Code:

Private Sub cmdedit_Click()
Dim count As Integer
RSReceiptService.MoveFirst
For count = 1 To FlexReceipt.Rows - 1
'RSReceiptService.Fields("Service").Value = FlexReceipt.TextMatrix(0, 0)
RSReceiptService.Fields("Quantity").Value = FlexReceipt.TextMatrix(0, 1)
RSReceiptService.Fields("Price").Value = FlexReceipt.TextMatrix(0, 2)
RSReceiptService.Fields("Total").Value = FlexReceipt.TextMatrix(0, 3)
RSReceiptService.Update
RSReceiptService.MoveNext
Next count
End Sub

and it highlights this line:
Code:

RSReceiptService.Fields("Quantity").Value = FlexReceipt.TextMatrix(0, 1)

and heres how my MS Access table looks like:
Attachment 96921

So how do i fix this up?
Thanks in advance! :)
Attached Images
 

Viewing all articles
Browse latest Browse all 21839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>