I have two reports that look similar except that one grabs directly from the table and the other via a query. Each report has a box (box30) that I want the BackColor to change either green, red, or yellow based on the value of one field.
When I entered the following code in the On_Format Event in each report:
<Code>
If fldStatus = "Shipped" Then Box30.BackColor = 4227072 Else: Box30.BackColor = 16777215
If fldStatus = "Awaiting Approval" Then Box30.BackColor = 255
If fldStatus = "Ordered" Then Box30.BackColor = 65535
</Code>
It works for the one coming directly from the table but not from the one coming from the query. Any suggestions?
When I entered the following code in the On_Format Event in each report:
<Code>
If fldStatus = "Shipped" Then Box30.BackColor = 4227072 Else: Box30.BackColor = 16777215
If fldStatus = "Awaiting Approval" Then Box30.BackColor = 255
If fldStatus = "Ordered" Then Box30.BackColor = 65535
</Code>
It works for the one coming directly from the table but not from the one coming from the query. Any suggestions?