On the on print property of the section where the field is on write the code
if me.FieldName < 0 then
me.fieldname.BackColor = 255 ' red
else
Me.fieldname.BackColor = 16777215 ' white
End if
Custom number formats can have one to four sections with semicolons ( as
the list separator. Each section contains the format specification for a
different type of number.
Section Description
First The format for positive numbers.
Second The format for negative numbers.
Third The format for zero values.
Fourth The format for Null values.
For example, you could use the following custom Currency format:
$#,##0.00[Green];($#,##0.00)[Red];"Zero";"Null"
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.