Louie,
You wrote...
this is what i tried but I got an error.
Care to describe and share that error with us?
Your first code... as you wrote it... works fine for a calculated text
control named
PercMinStd, in GroupHeader1, with values above and below .95.
So... you have some other problem.
This code tested OK...
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
If PercMinStnd > 0.95 Then
PercMinStnd.FontBold = False
Else
PercMinStnd.FontBold = True
End If
End Sub
All I can suggest is to check your object names (field, group)
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
That worked gr8t Now how about another set -
an error and it wont even preview the report
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
If PercMinStnd > 0.95 Then
PercMinStnd.FontBold = False
Else
PercMinStnd.FontBold = True
End If
End Sub
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
If Text25 < 2# Then
Text25.FontBold = False
Else
Text25.FontBold = True
End If
End Sub
:
Louie,
Use the OnFormat event of the Report, in the section where your
percentage is located, to bold or unbold that value.
If that calculated field was named [FinalPct]... and it displays in
the
Detail section...
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If FinalPct > .95 Then
FinalPct.FontBold = False
Else
FinalPct.FontBold = True
End if
End Sub
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your
life."
I have been working on a report the new request is to have the
percentage
rate bolded only if it is lower than 95% - is this possible?
This is what I have right now and it give me the correct percentage
=[txtPcsPerHour]/[MinProductionRate]