PC Review


Reply
Thread Tools Rate Thread

conditional formatting expression

 
 
=?Utf-8?B?bWNjb3k=?=
Guest
Posts: n/a
 
      23rd Mar 2007
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2F5bmUtSS1N?=
Guest
Posts: n/a
 
      23rd Mar 2007
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" wrote:

> 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
>

 
Reply With Quote
 
=?Utf-8?B?bWNjb3k=?=
Guest
Posts: n/a
 
      24th Mar 2007
THANKS WAYNE!

"Wayne-I-M" wrote:

> 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" wrote:
>
> > 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
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My First IIF expression and conditional formatting... Aria Microsoft Access Getting Started 3 11th Jan 2009 04:36 PM
Expression within Conditional Formatting =?Utf-8?B?U3R1IENhbXBiZWxs?= Microsoft Access Reports 3 19th Oct 2005 05:06 PM
Conditional Formatting OR Expression?? =?Utf-8?B?U01hYw==?= Microsoft Excel Misc 3 26th May 2005 05:10 AM
Re: Expression for Conditional Formatting Frank Kabel Microsoft Excel Misc 0 22nd Jul 2004 08:13 PM
Re: Expression for Conditional Formatting Peo Sjoblom Microsoft Excel Misc 0 22nd Jul 2004 08:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:37 AM.