Hi all<br><br>I have created a report, with lots and lots of fields, most of which have a value of zero. Is there any way to make the fields that are NOT zero <b>bold</b>?? It would make them stand out a little nicer.<br><br>Thanks! <br>Tasmin Zimak
Well, I answered my own question!!<br><br>I wrote some code, which is at the end of this post, and attached it to the "On Print" event of the detail section of the report. <br><br><br><font color=purple><br>Dim text1 As Control, text2 As Control, text3 As Control, text4 As Control, text5 As Control<br><br>Set text1 = Me!SUSSEPT<br>Set text2 = Me!SUSOCT<br>Set text3 = Me!SUSNOV<br>Set text4 = Me!SUSDEC<br>Set text5 = Me!SUSJAN<br><br>If (Val(text1.Text) <> 0) Then<br> text1.FontBold = True<br>Else<br> text1.FontBold = False<br>End If<br><br></font><br> <p>Tasmin Zimak<br><a href=mailto:tzimak@board.ugdsb.on.ca>tzimak@board.ugdsb.on.ca</a><br><a href= > </a><br>
<br>Yes it can. Use it with the "On Load" event of the form. The property to change the colour is "ForeColor". Other ones are "FontSize", "FontItalic" and "FontName".<br><br> <p>Tasmin Zimak<br><a href=mailto:tzimak@board.ugdsb.on.ca>tzimak@board.ugdsb.on.ca</a><br><a href= > </a><br>
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.