S
Steve
Hi,
Have the following code in the timer section of a form
which runs 3 reports at 15 second intervals. If there is
no data in a report there is a cancel event
Private Sub Report_NoData(Cancel As Integer)
Cancel = True
End Sub
which keeps a blank report from printing out but ALSO
seems to end the timer event and not run the other report.
What am i missing ?
Private Sub Form_Timer()
On Error GoTo Err_cmdPrintBarCodeLabelsTIMER_Click
Dim stDocName As String
If Time() > "7:30 PM" Then
DoCmd.Quit
End If
DoCmd.SetWarnings False
'CARL SECTION
stDocName = "rptReceiverBarCodeLabelsCARL"
DoCmd.OpenReport stDocName, acNormal 'acPreview
DoCmd.Close acReport, stDocName, acSaveNo
'ORLANDO SECTION
stDocName = "rptReceiverBarCodeLabelsORLANDO"
DoCmd.OpenReport stDocName, acNormal 'acPreview
DoCmd.Close acReport, stDocName, acSaveNo
'TONYA SECTION
stDocName = "rptReceiverBarCodeLabelsTONYA"
DoCmd.OpenReport stDocName, acNormal 'acPreview
DoCmd.Close acReport, stDocName, acSaveNo
DoCmd.SetWarnings True
Err_cmdPrintBarCodeLabelsTIMER_Click:
Exit Sub
End Sub
Have the following code in the timer section of a form
which runs 3 reports at 15 second intervals. If there is
no data in a report there is a cancel event
Private Sub Report_NoData(Cancel As Integer)
Cancel = True
End Sub
which keeps a blank report from printing out but ALSO
seems to end the timer event and not run the other report.
What am i missing ?
Private Sub Form_Timer()
On Error GoTo Err_cmdPrintBarCodeLabelsTIMER_Click
Dim stDocName As String
If Time() > "7:30 PM" Then
DoCmd.Quit
End If
DoCmd.SetWarnings False
'CARL SECTION
stDocName = "rptReceiverBarCodeLabelsCARL"
DoCmd.OpenReport stDocName, acNormal 'acPreview
DoCmd.Close acReport, stDocName, acSaveNo
'ORLANDO SECTION
stDocName = "rptReceiverBarCodeLabelsORLANDO"
DoCmd.OpenReport stDocName, acNormal 'acPreview
DoCmd.Close acReport, stDocName, acSaveNo
'TONYA SECTION
stDocName = "rptReceiverBarCodeLabelsTONYA"
DoCmd.OpenReport stDocName, acNormal 'acPreview
DoCmd.Close acReport, stDocName, acSaveNo
DoCmd.SetWarnings True
Err_cmdPrintBarCodeLabelsTIMER_Click:
Exit Sub
End Sub