B
Bmack500
Hello, and thanks in advance.
I've got a bit of code below, which just iterates through a string
array (WSVIP), uses a select statement to fetch an array of datacolums;
I would then like to iterate through each found row and delete it from
the original database.
I can't use a datatable.find method, since MACH_NAME is not a unique
field and I cannot index on it.
Am I going to have to iterate each row in the datatable and compare the
relevent columns, or is there an easier way to accomplish this?
Any help would be greatly appreciated. Thanks!
For Each strItem In wsVIP
If Not InStr(strItem, "*") > 0 Then
strCalc = "MACH_NAME = '" & strItem & "'"
Else
strCalc = "MACH_NAME LIKE '" & strItem & "'"
End If
foundRows = dsIava.Tables(0).Select(strCalc)
recCount = foundRows.Length
If Not recCount = 0 Then
For i = 0 To recCount
'HOW DO I DELETE THE FOUND ROWS FROM THE ORIGINAL
DATATABLE?
Next
End If
Next
dsIava.Tables(0).AcceptChanges()
I've got a bit of code below, which just iterates through a string
array (WSVIP), uses a select statement to fetch an array of datacolums;
I would then like to iterate through each found row and delete it from
the original database.
I can't use a datatable.find method, since MACH_NAME is not a unique
field and I cannot index on it.
Am I going to have to iterate each row in the datatable and compare the
relevent columns, or is there an easier way to accomplish this?
Any help would be greatly appreciated. Thanks!
For Each strItem In wsVIP
If Not InStr(strItem, "*") > 0 Then
strCalc = "MACH_NAME = '" & strItem & "'"
Else
strCalc = "MACH_NAME LIKE '" & strItem & "'"
End If
foundRows = dsIava.Tables(0).Select(strCalc)
recCount = foundRows.Length
If Not recCount = 0 Then
For i = 0 To recCount
'HOW DO I DELETE THE FOUND ROWS FROM THE ORIGINAL
DATATABLE?
Next
End If
Next
dsIava.Tables(0).AcceptChanges()