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!

Bolding only $ entered on a form to a report

Status
Not open for further replies.

murk

Technical User
Nov 26, 2002
16
0
0
US
I have a report with Premium Payments on it that are called 1, 2, 3, 4a, 4b, etc. and are set as currency which automatically enters $0.00 when there is no amount entered. I want to be able to enter an amount on the form so that when it shows up on the report it is in bold so it stands out from the $0.00.

Please be very specific in your answer as to where and how to do this.

Thanking you in advance.
 
Add code to the Report's Detail On Format Event. Add an IF statement for each TextBox control that is bound to the Fields you want to be bold to check the value and set the FontBold property accordingly. Example txt4 is bound to Field 4 you'd use

If txt4<> 0 then
txt4.FontBold = True
Else
txt4.FontBold = False
End If

and do this for each TextBox you want to alter

PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top