J
JimN
A report, with a subreport, has an "On Print" event to the MainReport. Then
"Run-Time Error "2427": You entered an expression that has no value. ",
appears and on "Debug" the code line: "If
Left([Reports]![MainReport]![SubReport].[Report]![Course#],1)=â€8†Then" is
highlighted. The "Help" button brings up a blank screen. The source for both
forms has data. What is the cause and fix? The coding is as follows:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Left([Reports]![MainReport]![SubReport].[Report]![Course#],1)=â€8†Then
Reports!MainReport!SubReport.Report!SupplyFee=0
Else
Reports!MainReport!SubReport.Report!SupplyFee=20
End If
"Run-Time Error "2427": You entered an expression that has no value. ",
appears and on "Debug" the code line: "If
Left([Reports]![MainReport]![SubReport].[Report]![Course#],1)=â€8†Then" is
highlighted. The "Help" button brings up a blank screen. The source for both
forms has data. What is the cause and fix? The coding is as follows:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Left([Reports]![MainReport]![SubReport].[Report]![Course#],1)=â€8†Then
Reports!MainReport!SubReport.Report!SupplyFee=0
Else
Reports!MainReport!SubReport.Report!SupplyFee=20
End If