What is the best way to highlight certain records in a report based on the value of a field (like all records where the field called Status = "Complete".
If by highlighting you mean something like bolding you could do this:
In the On format event of your detail section, put code like this:
Code:
If Me.Status = "Complete" Then
Me.txtField1.FontBold = True
Me.txtField2.FontBold = True
Else
Me.txtField1.FontBold = False
Me.txtField2.FontBold = False
End If
This will bold all controls listed if the Status field meets the criteris....Just include all detail fields...
Thank you CosmoKramer! I would really rather change the background color of the records where status= "Complete" to a light gray. Can you explain how to do this, too?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.