I have put the following code in the on format event procedure of my reports details.
If Me.HiredA < Me.ReqA Then
Me.HiredA.ForeColor = vbRed
Else
Me.HiredA.ForeColor = vbBlack
End If
If Me.Auth > Me.Hired Then
Me.Hired.ForeColor = vbRed
Me.Hired.FontBold = True
Else
Me.Hired.ForeColor = vbBlack
Me.Hired.FontBold = False
End If
The one dealing with Auth and Hired works great, but the one dealing with HiredA and ReqA doesn't. All fields have their format set to general number.
Doesn't anyone have any clue why this may not work?
Thanks in advance!
Ellie
**Using Access 97 at work**
**Using Access 2000 at home**
lena.wood@starband.net
If Me.HiredA < Me.ReqA Then
Me.HiredA.ForeColor = vbRed
Else
Me.HiredA.ForeColor = vbBlack
End If
If Me.Auth > Me.Hired Then
Me.Hired.ForeColor = vbRed
Me.Hired.FontBold = True
Else
Me.Hired.ForeColor = vbBlack
Me.Hired.FontBold = False
End If
The one dealing with Auth and Hired works great, but the one dealing with HiredA and ReqA doesn't. All fields have their format set to general number.
Doesn't anyone have any clue why this may not work?
Thanks in advance!
Ellie
**Using Access 97 at work**
**Using Access 2000 at home**
lena.wood@starband.net