Question with Color Conditioning in Access

ekeenan81

New Member
Joined
Dec 8, 2010
Messages
39
Is it possible for me on a form to condition the field to be certain colors depending on the date difference?

Ex. Days to Expiry

The initial formula to derive date is straightforward

TODAY()-ExpirationDate(Table Attribute)

Would it be possible to also condition this field to be certain colors, so when Days to Expiration are say 30 days, it highlights date in RED, when 30 to 60 Days Yellow, and so on etc....

I am thinking this would be some VB Coding possibly with some conditional if statements?


Any help or pointers in the right direction would be helpful.

Thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
If you have Access 2002 or higher you can use conditional formatting, and it's very similar to the conditional formatting in Excel.
In the form's design view, right-click the text box for the field that you want to format. You should see Conditional Formatting on the list. Otherwise, look in the menus.

Denis
 
Upvote 0

Forum statistics

Threads
1,224,575
Messages
6,179,637
Members
452,934
Latest member
Jdsonne31

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top