Change Back Colour of a Field

T

Trever B

Hi,

Thanks in advance. Need help on form display.

I have a continous form and the form is based on a query.

In that query I have a many Fields, but three in particular called
'FieldsOrder', 'Area' and another called 'AreaYN'

What I need for the Backcolours to be right when I look at the form.

Rules

if AreaYN = 'Y' Backcolour of Area needs to be Light Red
if Area YN = 'N' Backcolour of Area Needs to be White

However if 'fieldsOrder' = 1 then all fields on that row have to be Light
Green This overides AreaYN.

I need to have the colours show right when I look at the form.

Many Thanks once again

Trev
 
M

Marshall Barton

Trever said:
I have a continous form and the form is based on a query.

In that query I have a many Fields, but three in particular called
'FieldsOrder', 'Area' and another called 'AreaYN'

What I need for the Backcolours to be right when I look at the form.

Rules

if AreaYN = 'Y' Backcolour of Area needs to be Light Red
if Area YN = 'N' Backcolour of Area Needs to be White

However if 'fieldsOrder' = 1 then all fields on that row have to be Light
Green This overides AreaYN.


Use Conditional Formatting (Format menu) on all of the text
boxes. Set the first condition to use Expression Is
[FieldsOrder] = 1
and set the back color property to a light green.

Then set the second condition of the Area text box to use
Expression Is
[AreaYN] = "Y"
and set the back color to a light red.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top