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!

Compile Error - Bolding Text on form

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, 3a, 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.

Below is what PaulF had me try....but it didn't work. Any other suggestions???

If txt2<> 0 then
txt.2FontBold = True
Else
txt2.FontBold = False
End If

Thanks - and also when I try to reply to your reply there is no place in tek-tips for me to reply - it used to work for me but now the option is gone...where did it go?
 
I think that you just made a typo

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

I think that this code needs to be in the OnFormat event of the detail section of the report (assuming that this is in the detail).
 
I already checked the typo and it still doesn't change anything. Any other suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top