Continuous Form Conditional Formatting

MattBaldry

Self Taught, Learn from the Forums
Local time
Today, 12:30
Joined
Feb 5, 2019
Messages
325
Hi All,

Is it possible to use conditional formatting on a continuous form, but get the colour from a table? Lets say I have a status table like below.

StatusIDStatusNameStatusColourRGB
1Enquiry51, 255, 255
2Open246, 255, 51
3Ordered51, 255, 51
4Closed255, 162, 51

Is it possible to conditional format the form using the StatusColourRGB field? This would mean I could add more status options and colours without having to format the form.

~Matt
 
You can add conditional formatting in vba.
You can read your color from a table and add them accordingly.

and as far as I remember there was a limit.


or google it
 
Last edited:
you can also call a user-defined-function that will change the background
of your status color (on paint event, or various events).
 

Attachments

You can have up to 50 conditional formats using VBA.
However, if you are storing the colour codes in a table, you can have an unlimited number of colours and don't need conditional formatting.
For example
1665586057545.png

For a full explanation and example app, see my article
 

Users who are viewing this thread

Back
Top Bottom