Conditional formatting on combox box

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Conditional formatting on combox box

Post by scottb »

Hello,
I have done this before but can't get it to work now:

Combo box [cmbStatus] with a single field data source, text.
I would like to have it change the color based upon the text value = "Confirm"
I have used field is equal to "Confirm" and the [cmbStatus] = "Confirm"
but neither works.
Thank you for any help.
-Scott

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Conditional formatting on combox box

Post by Rudi »

Try this:

Open the form in design view
Select the textbox control
On the Form Design Tools context ribbon, select Format
In the dialog set up the Field Value to equal "Confirm"
Assign a formatting choice.
1.jpg
You do not have the required permissions to view the files attached to this post.
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Re: Conditional formatting on combox box

Post by scottb »

Hi Rudy,
I tried that with no luck.
That has worked for me before. Not sure what I'm doing wrong or differently this time.
Thank you for the reply. I appreciate it.

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Re: Conditional formatting on combox box

Post by scottb »

This is what I have tried. Thanks.
You do not have the required permissions to view the files attached to this post.

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Conditional formatting on combox box

Post by Rudi »

Have you checked if the word "Confirm" does not have leading/trailing spaces? (to cause a mismatch with your C/F)
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Re: Conditional formatting on combox box

Post by scottb »

Yes I have confirmed there are no leading or trailer spaces.
Thanks.

User avatar
HansV
Administrator
Posts: 78454
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Conditional formatting on combox box

Post by HansV »

Any chance you could attach a stripped-down and zipped copy of your database, with only a few records and no sensitive info, that demonstrates the problem?
Best wishes,
Hans

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Re: Conditional formatting on combox box

Post by scottb »

In the process of stripping it down and recreating the problem it began working. Not sure what I was doing wrong but I appreciate the help all the same.
Thanks Rudi and Hans.