If this is in form view, you can add code to set the BackColor property of
the control. Use the Current event of the form, and the AfterUpdate event of
the control(s) it depends on. Also use the Undo event of the form to
restore the correct color, depending on the OldValue of the controls.
If this form is in Continuous or Datasheet view, you're stuck.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"ron b" <(E-Mail Removed)> wrote in message
news:7FB42BA5-E57F-485C-8AF5-(E-Mail Removed)...
>I have a form in which I have an object I would like to have the background
> change color under certain circumstances. However I need five different
> colors. The normal way to add contitional formats in Access 2000 is to use
> the conditional format option on the format menu. However it only has
> three
> options. Can someone give me some code which will allow me to change the
> background color of my object under five different conditions? If so
> please
> also tell me where to enter the code.