T
Tom \T\
I know this is probably a simple task but I have 6 reports with the same
code in each of them:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Const vbLightGrey = 14540253
If Me.CurrentRecord Mod 2 = 0 Then
Me.Section(acDetail).BackColor = vbLightGrey
Else
Me.Section(acDetail).BackColor = vbWhite
End If
End Sub
Private Sub Report_NoData(Cancel As Integer)
Cancel = True
msgbox "No data found for this Report! Please check your Date Range."
End Sub
I would like to consolidate the code and make my database more compact. Can
I put both of these Subprocedures into their own Public modules for example
modReportGreenBar and modReportNoData. If it can be done... How?
Thanks for any help in advance.
P.S.: Happy New Year
Tom "T"
code in each of them:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Const vbLightGrey = 14540253
If Me.CurrentRecord Mod 2 = 0 Then
Me.Section(acDetail).BackColor = vbLightGrey
Else
Me.Section(acDetail).BackColor = vbWhite
End If
End Sub
Private Sub Report_NoData(Cancel As Integer)
Cancel = True
msgbox "No data found for this Report! Please check your Date Range."
End Sub
I would like to consolidate the code and make my database more compact. Can
I put both of these Subprocedures into their own Public modules for example
modReportGreenBar and modReportNoData. If it can be done... How?
Thanks for any help in advance.
P.S.: Happy New Year
Tom "T"