dbTalk Databases Forums  

Conditonal Formatting

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


Discuss Conditonal Formatting in the comp.databases.ms-access forum.



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

Default Conditonal Formatting - 03-24-2009 , 03:06 PM






I have a list of codes in a Continuous Forms where I want certain
codes to light up in a different colour shade.

The expression I came up with in the conditional format was:
[code]="A1" And "A2" And "A5" And "A21" And "A32"

I've tried : , ; Or instead of the And in the formula, but without
success anybody have any ideas? sure its simple really, please help.

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: Conditonal Formatting - 03-24-2009 , 03:33 PM






John wrote:

Quote:
I have a list of codes in a Continuous Forms where I want certain
codes to light up in a different colour shade.

The expression I came up with in the conditional format was:
[code]="A1" And "A2" And "A5" And "A21" And "A32"

I've tried : , ; Or instead of the And in the formula, but without
success anybody have any ideas? sure its simple really, please help.
How could, even if the syntax were correct, be in all of those.
Wouldn't OR be more correct?

Would Instr(" A1 A2 A5 A21 A32 ",code) > 0 work?


Reply With Quote
  #3  
Old   
Marshall Barton
 
Posts: n/a

Default Re: Conditonal Formatting - 03-24-2009 , 03:42 PM



John wrote:

Quote:
I have a list of codes in a Continuous Forms where I want certain
codes to light up in a different colour shade.

The expression I came up with in the conditional format was:
[code]="A1" And "A2" And "A5" And "A21" And "A32"

I've tried : , ; Or instead of the And in the formula, but without
success anybody have any ideas? sure its simple really, please help.

Here's an easier way:

Select the Expression Is option and use an expression like:
[code] IN ("A1","A2","A5","A21","A32")
--
Marsh


Reply With Quote
  #4  
Old   
Steve
 
Posts: n/a

Default Re: Conditonal Formatting - 03-24-2009 , 04:33 PM



Thanks for all your help the formula works great.

On Mar 24, 9:42*pm, Marshall Barton <marshbar... (AT) wowway (DOT) com> wrote:
Quote:
John wrote:
I have a list of codes in a Continuous Forms where I want certain
codes to light up in a different colour shade.

The expression I came up with in the conditional format was:
[code]="A1" And "A2" And "A5" And "A21" And "A32"

I've tried : , ; Or *instead of the And in the formula, but without
success anybody have any ideas? sure its simple really, please help.

Here's an easier way:

Select the Expression Is option and use an expression like:
* * * * [code] IN ("A1","A2","A5","A21","A32")
--
Marsh


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.