Jim said:
I would like to have a text field (numeric data) change to
red if the value is a negitive number
Jim,
In all access versions, if the field is a Text datatype field you can
use code, in the Report Section's Format event:
If [[YourField] < 0 Then
[YourField].ForeColor = vbRed
Else
[YourField].ForeColor = vbBlack
End If
If you have Access 2000 or later, you can also use the control's
Conditional Formatting property
Format + Conditional Formatting
Set the 'Field Value Is' drop-down expression to Less Than
Set the Value as 0
Set the controls Color's as desired.
If you are using a field that is a Number datatype, then all you would
need do is write (in all versions) is:
#[Black];-#[Red];0
in the control's Format property
Hope this has helped.