I have the following code and it always gets stopped at the line "PrintWRNo = (PrintWRNo + 1)" can anyone tell me why?
Private Sub Command3_Click()
PrintWRNo = Me.StartJobNo
While (PrintWRNo <= Me.EndJobNo)
[Forms]![SpecificJobForm]![PrintJob] = PrintWRNo
DoCmd.OpenReport "WorkReleases Specific Job", acViewNormal
DoCmd.Close acReport, "WorkReleases Specific Job"
PrintWRNo = (PrintWRNo + 1)
Wend
End Sub
Private Sub Command3_Click()
PrintWRNo = Me.StartJobNo
While (PrintWRNo <= Me.EndJobNo)
[Forms]![SpecificJobForm]![PrintJob] = PrintWRNo
DoCmd.OpenReport "WorkReleases Specific Job", acViewNormal
DoCmd.Close acReport, "WorkReleases Specific Job"
PrintWRNo = (PrintWRNo + 1)
Wend
End Sub