conditional formatting expression

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i want my field to become red when its value is more than the half of the
other field
what expression is the right expression or code for this
 
Hi

Rather than using code I would use conditional formating on the second control

Open the form in deisgn view.
I assume there are 2 controls (number format)
Select the 2nd control (the one you want to change colour)
Select format
Select Condidtional Formating
In the Dropdown select "Expression Is"
In the ccriteria in sert this [textA]>([TextB]/2)
Set the background Red

Change TextA and TextB to the names of the real controls
TextB - is the control that you want to turn red when it is more than 50% of
TextA

Hope this helps
 
THANKS WAYNE!

Wayne-I-M said:
Hi

Rather than using code I would use conditional formating on the second control

Open the form in deisgn view.
I assume there are 2 controls (number format)
Select the 2nd control (the one you want to change colour)
Select format
Select Condidtional Formating
In the Dropdown select "Expression Is"
In the ccriteria in sert this [textA]>([TextB]/2)
Set the background Red

Change TextA and TextB to the names of the real controls
TextB - is the control that you want to turn red when it is more than 50% of
TextA

Hope this helps







--
Wayne
Manchester, England.



mccoy said:
i want my field to become red when its value is more than the half of the
other field
what expression is the right expression or code for this
 

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

Back
Top