G
graeme34 via AccessMonster.com
I have a do.....loop within my code which works fine as long as the loop
terminates within the recordset. It doenst seem to stop at the EOF condition.
I know its a problem with my coding could any body tell me what it is:
Do While rsOrdLine!SalesOrderNumber = lngOrderNum _
Or rsOrdLine.EOF = True
With rsOrdLine
.Edit
!SalesOrderLineStatus = "Despatch Note Printed"
.Update
.MoveNext
End With
Loop
terminates within the recordset. It doenst seem to stop at the EOF condition.
I know its a problem with my coding could any body tell me what it is:
Do While rsOrdLine!SalesOrderNumber = lngOrderNum _
Or rsOrdLine.EOF = True
With rsOrdLine
.Edit
!SalesOrderLineStatus = "Despatch Note Printed"
.Update
.MoveNext
End With
Loop