D
David Cowen
I would like to create a function for the Report_NoData
Method which suppresses the report from previewing when
there is no data in the report recordsource. See example
below. However, this example does not work correctly.
Does anyone have a solution?
Thanks!
Private Sub Report_NoData(Cancel As Integer)
Call ReportNoData(Cancel)
End Sub
Module basReports:
Option Compare Database
Public intCount As Integer
Sub ReportNoData(intCancel As Integer)
intCount = intCount + 1
If intCount = 1 Then
MsgBox "No data found. ", vbOKOnly
Else
intCancel = 1
intCount = 0
End If
End Sub
Method which suppresses the report from previewing when
there is no data in the report recordsource. See example
below. However, this example does not work correctly.
Does anyone have a solution?
Thanks!
Private Sub Report_NoData(Cancel As Integer)
Call ReportNoData(Cancel)
End Sub
Module basReports:
Option Compare Database
Public intCount As Integer
Sub ReportNoData(intCancel As Integer)
intCount = intCount + 1
If intCount = 1 Then
MsgBox "No data found. ", vbOKOnly
Else
intCancel = 1
intCount = 0
End If
End Sub