Traci Thomason
Aug 17th, 1999, 05:29 PM
I have a calculated txtbox that figures percent from 2 other fields in an Access report. I have an event procedure in the ON FORMAT property to change the color of text to red if it is over 5.0%. This is the event procedure:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me![Percent].ForeColor = IIf(Me![Percent] >= "5.0", 255, 0)
End Sub
This is producing erratic results. 0.6%, 1.0%, 8.2%, 0.7%, etc. The format is percent and decimal place is 1. Can someone tell me where I am going wrong. Appreciate any help I can get.
Traci
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me![Percent].ForeColor = IIf(Me![Percent] >= "5.0", 255, 0)
End Sub
This is producing erratic results. 0.6%, 1.0%, 8.2%, 0.7%, etc. The format is percent and decimal place is 1. Can someone tell me where I am going wrong. Appreciate any help I can get.
Traci