Conditional Formatting not behaving as expected, from record to record (1 Viewer)

123seven

New member
Local time
Today, 02:23
Joined
Mar 6, 2011
Messages
4
In frmOrders, single form view, I'm trying to format the billAddress and shipAddress to be different colours in the rare instances that they are not the same. Using conditional formatting, I thought this would work: [BillingAddressID]<>[DeliveryAddressID] resulting in a red background, which it does, but it persists through all records, including the majority that are the same.

I added a 2nd rule: [DeliveryAddressID]=[BillingAddressID] resulting in no background colour change, but this didn't make any difference.

Looking forward to some wisdom and thanks for reading.
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 23:23
Joined
Aug 30, 2003
Messages
36,125
I would expect to work. I assume you used Expression Is? Can you attach a db here that demonstrates the problem?
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 02:23
Joined
Feb 19, 2002
Messages
43,275
Which control are you attaching the conditional format to? If you want to color both, you need to add the rule to each control. You also need to account for null. values if they are possible.
 

Gasman

Enthusiastic Amateur
Local time
Today, 07:23
Joined
Sep 21, 2011
Messages
14,299
Continuous form? Unbound controls?
 

Users who are viewing this thread

Top Bottom