C
Charles D Clayton Jr
I wanted a way to find every tenth record on a report. I made this
function which does what I want sometimes. Here is the function:
Function fCF(tens As Integer) 'function Conditional Format
'Highlite every 10th number on a report
If (tens / 10) = Int(tens / 10) Then
fCF = 1
Else
fCF = 2
End If
End Function
On the report I have an unbound text box with its control source set
to "=1" and running sum set to "over all." I apply a conditional
format for that text box using the function fCF. In the conditional
format box if I set the back color or font color, the function works
great. However, if I go to change either bold, italics or underline,
on the report it blanks out the every tenth number. I checked the
text box and there is nothing strange about any setting. There is no
event associated with anything on the report. Does anybody have any
thoughts as to why this strange occurrences happens?
Thanks,
Charles D Clayton Jr
PS - running A2K
function which does what I want sometimes. Here is the function:
Function fCF(tens As Integer) 'function Conditional Format
'Highlite every 10th number on a report
If (tens / 10) = Int(tens / 10) Then
fCF = 1
Else
fCF = 2
End If
End Function
On the report I have an unbound text box with its control source set
to "=1" and running sum set to "over all." I apply a conditional
format for that text box using the function fCF. In the conditional
format box if I set the back color or font color, the function works
great. However, if I go to change either bold, italics or underline,
on the report it blanks out the every tenth number. I checked the
text box and there is nothing strange about any setting. There is no
event associated with anything on the report. Does anybody have any
thoughts as to why this strange occurrences happens?
Thanks,
Charles D Clayton Jr
PS - running A2K