SteveL13
asked on
Displaying on a report
I have this code in the onprint event of the detail section of a report which works fine if there is data:
But if the report has no data I get an error that reads, "You entered an expression that has no value. The debug highlights the first line of the code. How do I avoid this?
If Me.txtType2 = "COMPLETE" Then
Me.chkbxConformed.Visible = True
Me.txtRetDate.Visible = False
End If
If Not IsNull(Me.txtRetDate) Then
If Me.txtType2 = "PLATING" Or Me.txtType2 = "CALIBRATION" Or Me.txtType2 = "CHECK FIT" Then
Me.chkbxConformed.Visible = False
Me.txtRetDate.Visible = True
End If
End If
But if the report has no data I get an error that reads, "You entered an expression that has no value. The debug highlights the first line of the code. How do I avoid this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window