dbTalk Databases Forums  

access2007 conditional formatting

comp.databases.ms-access comp.databases.ms-access


Discuss access2007 conditional formatting in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roger
 
Posts: n/a

Default access2007 conditional formatting - 09-29-2010 , 03:55 AM






I've got a simple form with an unbound field, plannedWA, which is set
to 100
a second unbound field, totalWA has a control source of =plannedWA +
1, and one conditional format
expression is [plannedWA]>0

which changes the font to red

in this case, the font should be red, but isn't

is this a syntax problem ?

if I don't put in the [] brackets, access changes the expression to
"plannedWA">0

Reply With Quote
  #2  
Old   
John Spencer
 
Posts: n/a

Default Re: access2007 conditional formatting - 09-29-2010 , 07:55 AM






Try changing the expression to
CDbl([PlannedWA]) > 0

Or simply use
FieldValue > 1

Access is not always good about determining the type of data in unbound
CONTROLS (not fields). 100 could be text or it could be a number, Access will
generally default to text unless there is some other "hint" to help it decide
the value of the control is something different than text.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Roger wrote:
Quote:
I've got a simple form with an unbound field, plannedWA, which is set
to 100
a second unbound field, totalWA has a control source of =plannedWA +
1, and one conditional format
expression is [plannedWA]>0

which changes the font to red

in this case, the font should be red, but isn't

is this a syntax problem ?

if I don't put in the [] brackets, access changes the expression to
"plannedWA">0

Reply With Quote
  #3  
Old   
Roger
 
Posts: n/a

Default Re: access2007 conditional formatting - 09-29-2010 , 01:45 PM



On Sep 29, 6:55*am, John Spencer <JSPEN... (AT) Hilltop (DOT) umbc> wrote:
Quote:
Try changing the expression to
CDbl([PlannedWA]) > 0

Or simply use
FieldValue > 1

Access is not always good about determining the type of data in unbound
CONTROLS (not fields). *100 could be text or it could be a number, Access will
generally default to text unless there is some other "hint" to help it decide
the value of the control is something different than text.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County



Roger wrote:
I've got a simple form with an unbound field, plannedWA, which is set
to 100
a second unbound field, totalWA has a control source of =plannedWA +
1, and one conditional format
* * expression is * * * * * [plannedWA]>0

which changes the font to red

in this case, the font should be red, but isn't

is this a syntax problem ?

if I don't put in the [] brackets, access changes the expression to
"plannedWA">0- Hide quoted text -

- Show quoted text -
that makes sense... thanx

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.