Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display checkmark based on condition?

Status
Not open for further replies.

JroTek

Technical User
May 24, 2012
1
0
0
I am trying to display a check mark on a report. I want the check mark to display if a field called "status" has any value. If it has no value, I do not want a check the check mark to display. The field called "status" is not a yes/no field.

Thank you,
Jonathan
 
Hello Jonathan,

Add this function to the report's code module

Code:
Private Function fConvert(var As Variant) As Boolean
    If Not IsNull(var) Then
        fConvert = True
    End If
End Function

Then call the function from the checkbox by adding the following for the checkbox's controlsource

Code:
=fConvert([Status])

Cheers,
formertexan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top