C
Chuck
I have a report with a column for each month. (Jan, Feb, Mar...)
I'd like to bold the data in the column that the report is run for.
I placed this code in the on Format event of the report to test, the code is
executing ok but the columns end up all in normal weight.
m = DatePart("m", dt)
Select Case m
Case 1
Me.Jan.FontWeight = vbBold
Me.Feb.FontWeight = vbNormal
Me.Mar.FontWeight = vbNormal
Me.Apr.FontWeight = vbNormal
Me.May.FontWeight = vbNormal
Me.Jun.FontWeight = vbNormal
Me.Jul.FontWeight = vbNormal
Me.Aug.FontWeight = vbNormal
Me.Sep.FontWeight = vbNormal
Me.Oct.FontWeight = vbNormal
Me.Nov.FontWeight = vbNormal
Me.Dec.FontWeight = vbNormal
Case 2
Me.Jan.FontWeight = vbNormal
Me.Feb.FontWeight = vbBold
Me.Mar.FontWeight = vbNormal
Me.Apr.FontWeight = vbNormal
Me.May.FontWeight = vbNormal
Me.Jun.FontWeight = vbNormal
Me.Jul.FontWeight = vbNormal
Me.Aug.FontWeight = vbNormal
Me.Sep.FontWeight = vbNormal
Me.Oct.FontWeight = vbNormal
Me.Nov.FontWeight = vbNormal
Me.Dec.FontWeight = vbNormal
End Select
Any help would be appreciated.
Thanks
I'd like to bold the data in the column that the report is run for.
I placed this code in the on Format event of the report to test, the code is
executing ok but the columns end up all in normal weight.
m = DatePart("m", dt)
Select Case m
Case 1
Me.Jan.FontWeight = vbBold
Me.Feb.FontWeight = vbNormal
Me.Mar.FontWeight = vbNormal
Me.Apr.FontWeight = vbNormal
Me.May.FontWeight = vbNormal
Me.Jun.FontWeight = vbNormal
Me.Jul.FontWeight = vbNormal
Me.Aug.FontWeight = vbNormal
Me.Sep.FontWeight = vbNormal
Me.Oct.FontWeight = vbNormal
Me.Nov.FontWeight = vbNormal
Me.Dec.FontWeight = vbNormal
Case 2
Me.Jan.FontWeight = vbNormal
Me.Feb.FontWeight = vbBold
Me.Mar.FontWeight = vbNormal
Me.Apr.FontWeight = vbNormal
Me.May.FontWeight = vbNormal
Me.Jun.FontWeight = vbNormal
Me.Jul.FontWeight = vbNormal
Me.Aug.FontWeight = vbNormal
Me.Sep.FontWeight = vbNormal
Me.Oct.FontWeight = vbNormal
Me.Nov.FontWeight = vbNormal
Me.Dec.FontWeight = vbNormal
End Select
Any help would be appreciated.
Thanks