I am trying to keep a detail line from printing on a sub-report if a date is later than the date entered on another form.
Here is my code but I don't knwo how to keep the detail line from printing.
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Me.detaillineDate > Forms!frmDateRangeAllWorkCenterReport.txtEnd Then
'dont print the detail line code here