D
Doug Versch
Hi,
I am trying to itterate through a datatable and delete selected rows but I
get an error stating that the collection has changed when the row is
deleted.
Try
For Each drOrds In dsRecPurchs.Tables("PurchaseRecpts").Rows
If cBool(drOrds("Uploaded")) then
drOrds.Delete
End If
Next
Catch Ex As Exception
st=Ex.ToString
MessageBox ( st )
End Try
How do I itterate and Delete or batch Delete for a set criteria?
Thanks Doug
I am trying to itterate through a datatable and delete selected rows but I
get an error stating that the collection has changed when the row is
deleted.
Try
For Each drOrds In dsRecPurchs.Tables("PurchaseRecpts").Rows
If cBool(drOrds("Uploaded")) then
drOrds.Delete
End If
Next
Catch Ex As Exception
st=Ex.ToString
MessageBox ( st )
End Try
How do I itterate and Delete or batch Delete for a set criteria?
Thanks Doug