you can change the back ground color quite easily. see
http://www.devhut.net/index.php?lang...chgBkgrndColor
To determine the color to use you can use the color utility I created, which
can be found at
http://www.devhut.net/index.php?lang...0000007#colors
But basically you'd use the afterupdate event and the current event of the
form and do something like the following for each of them
If SigOther = True then
Me.Section(acDetail).BackColor = 16757247 'Pink
Else
Me.Section(acDetail).BackColor = -958615391 'Light Blue
End if
You need to use the after update for the SigOther control to adjust when the
user makes changes, but also need to use the oncurrent to adjust between
records when they get loaded.
--
Hope this helps,
Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples:
http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
"Tony" wrote:
> Hello
>
> I wish to change the color of a form depending on the value of a variable.
> If the var "SigOther" [boolean] is true then I want the form to be pink else
> a light blue.
>
> Thanks a lot
>