Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Row handle referred to a deleted row or row marked for deletion

Avatar of al4629740
al4629740Flag for United States of America asked on
Visual Basic Classic
2 Comments1 Solution679 ViewsLast Modified:
I have code in vb6 where I am trying to add the column for a total.  After I make a deletion, I get the posted error:

"Row handle referred to a deleted row or  row marked for deletion"  The error happens on line 5

Why does this happen?

Private Sub DataGrid2_AfterDelete()

SumTotal = 0
Do Until rec2.EOF = True
   SumTotal = SumTotal + rec2("GrossAmount")
GrossTotal = SumTotal

SumTotal = 0
Do Until rec2.EOF = True
   SumTotal = SumTotal + rec2("NetAmount")
NetTotal = SumTotal

End Sub
Avatar of eemit
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers