If [fld_division] = "304" Then
Reports("rpt_NameOfReprot"("Textboxname".BackColor = vbRed
Else
Reports("rpt_NameOfReport"("Textboxname".BackColor = vbYellow
End If
OK, I tweaked it a little (assume 304 is division you want to highlight) - this example is in the on format event of the detail section:
If [fld_division] = "304" Then
Reports("rpt_ReportName"("txtbox_Name".BackStyle = 1
Reports("rpt_ReportName"("txtbox_Name".BackColor = vbRed
Else
Reports("rptReportName"("txtbox_Name".BackStyle = 0
'since backstyle is now transparent,
'the next line isn't really necessary but sets it back to a "default"
Reports("rptReportName"("txtbox_Name".BackColor = vbWhite
End If
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.