background color value (1 Viewer)

mcat

New member
Local time
Today, 02:38
Joined
Jul 19, 2019
Messages
5
How do I access 2016 change background color based on value in another field?
not a text field
IE if kanban type is b/o blue if y yellow
 

Attachments

  • Mike Access testing.accdb
    1.5 MB · Views: 58

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 23:38
Joined
Oct 29, 2018
Messages
21,454
Hi. Welcome to the forum! Have you tried using Expression Is in Conditional Formatting?
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 23:38
Joined
Aug 30, 2003
Messages
36,124
Have you looked at Conditional Formatting, on the ribbon?

FYI I'm going to move this thread to a more appropriate forum. Welcome to AWF!
 

mcat

New member
Local time
Today, 02:38
Joined
Jul 19, 2019
Messages
5
Conditional Formatting is grayed out on background.
I think it only works with a text box.
I'm a newbe to Access
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 23:38
Joined
Oct 29, 2018
Messages
21,454
Conditional Formatting is grayed out on background.
I think it only works with a text box.
I'm a newbe to Access
Hi. I can't download your file at the moment. What control are you trying to change the color? Sometimes, you could use a workaround by using a Textbox to represent it, so you can apply conditional formatting.
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 23:38
Joined
Aug 30, 2003
Messages
36,124
Which control? You can make a textbox look the same as a label.
 

isladogs

MVP / VIP
Local time
Today, 07:38
Joined
Jan 14, 2017
Messages
18,209
Is the attached what you want? If so black text may be better when the background is yellow.
I used conditional formatting as previously suggested by others.

Strongly recommend your field names do not contain spaces or special characters
 

Attachments

  • Mike Access testing v2_CR.zip
    159.7 KB · Views: 54

mcat

New member
Local time
Today, 02:38
Joined
Jul 19, 2019
Messages
5
No I need box5 to change color with kanban type value in query.
 

mcat

New member
Local time
Today, 02:38
Joined
Jul 19, 2019
Messages
5
I took out spaces in field names.
Thanks
 

isladogs

MVP / VIP
Local time
Today, 07:38
Joined
Jan 14, 2017
Messages
18,209
OK then - like this ? I hope so! ;)



I've removed the previous conditional formatting from v2
To do the above I've had to use the Detail_Format event as CF can't be used on box controls
However that event only runs in print preview or when printed.
You won't see the effect in report view or layout view.
That cannot be done!

Hope that helps

NOTE: You should also remove special characters like / from field names
 

Attachments

  • Mike Access testing v3_CR.zip
    29.4 KB · Views: 56
  • Capture.PNG
    Capture.PNG
    39.3 KB · Views: 115

Users who are viewing this thread

Top Bottom