Sharon Hague
10-28-2003, 08:34 AM
Hi All
I have a problem with some coding I have entered into a report I have created.
My report comprises of 3 fields - MyDate, MyDay and Overtime.
I want the report to show Saturdays in red, therefore I have entered the following code into the on format part of my detail part of my report: -
If Me.MyDay = 7 Then
Me.MyDay.FontBold = True
Me.MyDay.ForeColor = vbRed
Else
Me.MyDay.FontBold = False
Me.MyDay.ForeColor = vbBlack
End If
When I run the report everything is displayed in black.
What am I doing wrong?
I'd appreciate anybody's help on this.
I have a problem with some coding I have entered into a report I have created.
My report comprises of 3 fields - MyDate, MyDay and Overtime.
I want the report to show Saturdays in red, therefore I have entered the following code into the on format part of my detail part of my report: -
If Me.MyDay = 7 Then
Me.MyDay.FontBold = True
Me.MyDay.ForeColor = vbRed
Else
Me.MyDay.FontBold = False
Me.MyDay.ForeColor = vbBlack
End If
When I run the report everything is displayed in black.
What am I doing wrong?
I'd appreciate anybody's help on this.