Recently I posted a question regarding a program to force a label report to skip a specified number of labels. My problem at that time was with the IsLoaded function. That is now working. However, now that everything looks right, the program doesn't work. It goes through all the correct steps, but nothing happens. It opens the report without having skipped the specified number of labels. I'm not getting any errors, and am obviously close to clueless about programing. Does anyone see a problem with the following events? I'm sorry to list all four of them, but I can't find the problem.
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If PrintCount <= Forms!frmClientLabelPosition!txtLabelsToSkip _
And mboolFirstLabel = True Then
Me.NextRecord = False
Me.PrintSection = False
Else
mboolFirstLabel = False
'PrintCount = 0
End If
End Sub
Private Sub Report_NoData(Cancel As Integer)
MsgBox "No Clients To Print"
Cancel = True
End Sub
Private Sub Report_Open(Cancel As Integer)
If Not IsLoaded("frmClientLabelPosition") Then
MsgBox "You Must Run This Report From Label Criteria Form"
Cancel = True
Else
mboolFirstLabel = True
End If
End Sub
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
mboolFirstLabel = True
End Sub
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If PrintCount <= Forms!frmClientLabelPosition!txtLabelsToSkip _
And mboolFirstLabel = True Then
Me.NextRecord = False
Me.PrintSection = False
Else
mboolFirstLabel = False
'PrintCount = 0
End If
End Sub
Private Sub Report_NoData(Cancel As Integer)
MsgBox "No Clients To Print"
Cancel = True
End Sub
Private Sub Report_Open(Cancel As Integer)
If Not IsLoaded("frmClientLabelPosition") Then
MsgBox "You Must Run This Report From Label Criteria Form"
Cancel = True
Else
mboolFirstLabel = True
End If
End Sub
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
mboolFirstLabel = True
End Sub