Check-In a Part through Engineering Workbench

I have a program that has changed records on ECOopr and I want to check the part back in. However, when I run the following code it successfully checks the part in but the ECOOpr table does not clear out (like it does when you manually check in a part through epicor). Any idea what I might be missing? I have not shown the code that opens the session, or modifies the record set.

For I = 0 To myDatafromWorkbench.ECOOpr.Rows.Count - 1
myDatafromWorkbench.ECOOpr.Rows(I).Item("rowmod") = "U"
Next
myWorkbench.Update(myDatafromWorkbench)
myWorkbench.ApproveAll("Service", txtPN.Text.ToString.Trim, CbxPNRev.SelectedItem.ToString.Trim, "", Now, False, False, False, False, True, "")
myWorkbench.CheckIn("Service", txtPN.Text.Trim, CbxPNRev.SelectedItem.ToString.Trim, "", Now, False, True, False, False, False, "Labor Estimate Updated", "")
EpiSession.Dispose()




Tom Christie
Manufacturing Engineer

AGM Container Controls
3526 E Ft. Lowell Road
Tucson, AZ 85716

PH: 520-881-2130
EM: Tchristie@...



[Non-text portions of this message have been removed]