G
Grant
Hello Group,
I have code (see below), that I need to add a counter to within the loop. I
need to know that " if this is the first time through the loop.. counter = <1
then "this code", if the counter is >1 then "this code"
If Not .BOF And Not .EOF Then
.MoveFirst
Do Until .EOF
stDocName = "Rpt_WorkIssued_toSub_Admin"
[Forms]![frmUpdateSelectedZones_Admin]![txtZone] = ![ZONE]
Result = SetPrintMDE(Me.hWnd, stDocName, True, 1, False, , , -1)
.MoveNext
Loop
End If
.Close
End With
Thanks
Grant
I have code (see below), that I need to add a counter to within the loop. I
need to know that " if this is the first time through the loop.. counter = <1
then "this code", if the counter is >1 then "this code"
If Not .BOF And Not .EOF Then
.MoveFirst
Do Until .EOF
stDocName = "Rpt_WorkIssued_toSub_Admin"
[Forms]![frmUpdateSelectedZones_Admin]![txtZone] = ![ZONE]
Result = SetPrintMDE(Me.hWnd, stDocName, True, 1, False, , , -1)
.MoveNext
Loop
End If
.Close
End With
Thanks
Grant