I have a sales order form with a subform on a tab. The subform contains the line items of the order. If I change something in the heading (main form) I want to reprice the line ittems. The code I have reprices the first line item correctly, and then loops infinitely, continuing to reprice the first line item repeatedly. What have I done wrong?
[HTML]
Dim rs As dao.Recordset
With Forms!frmOEOrde r
On Error GoTo Error_txtUpchar gePct_AfterUpda te
Set rs = !subDetail.Form .RecordsetClone
rs.MoveFirst
Do Until rs.EOF
cswPricingLevel s Forms!frmOEOrde r, False, CodeDb
rs.MoveNext ' this does not move to the next row ???
Loop
End With
[/HTML]
Thanks in advance!
Jim
[HTML]
Dim rs As dao.Recordset
With Forms!frmOEOrde r
On Error GoTo Error_txtUpchar gePct_AfterUpda te
Set rs = !subDetail.Form .RecordsetClone
rs.MoveFirst
Do Until rs.EOF
cswPricingLevel s Forms!frmOEOrde r, False, CodeDb
rs.MoveNext ' this does not move to the next row ???
Loop
End With
[/HTML]
Thanks in advance!
Jim
Comment