MAKE CONDITIONAL FORMATTING TO REPEAT VALUE

HAVE AN TABLE WITH SOME  TXT VALUE
LIKE ABC  CDA EFG

BUT WHEN I GET  ABB OR AAB  OR CCA
I NEED MAKE CONDITIONAL FORMATING TO THAT FIELD

THERES AN WAY TO DO THAT?
ANY HELP APRECIATED!
micky runningAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FlysterCommented:
Highlight the cell you want to format, right-click and select Conditional Formatting. Set "Format only cells where the:" box to Expression is. Enter this formula:

Left([YourField],1)=Mid([YourField],2,1)  
Set the formatting to what you want. Change YourField to the name of your field.

Select New rule. Enter this formula:

Mid([YourField],2,1)=Right([YourField],1)
Set formatting.

Flyster
Jeffrey CoachmanMIS LiasonCommented:
micky running,

Welcome to Experts-Exchange.
;-)

...Just so you know, ...printing your entire question and question body in ALL Caps makes it look like you are SHOUTING.
see here:
http://netiquette.wikia.com/wiki/Rule_number_2_-_Do_not_use_all_caps

Please use proper case to make your questions easier to read.
;-)

Thanks,

JeffCoachman
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
BUT WHEN I GET  ABB OR AAB  OR CCA
I NEED MAKE CONDITIONAL FORMATING TO THAT FIELD
If Flyster's suggestion doesn't work, then you'll need to give us more information about what should trigger your conditional formatting. It's best is you use actual data instead of "ABB" or "AAB".

And as Jeff said - please don't post in all caps. Makes things very hard to read.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Jeffrey CoachmanMIS LiasonCommented:
The way I interpret this is that you need values of: ABB OR AAB  OR CCA,...
...to have conditional formatting (ex.: make these values Red)

If so, you can select the control/field and set three conditional formatting rules, ...like this:
Conditional formattingThese settings will get you something like this in your form:
conditional Formatting
I am sure there may be a way t combine all three values into one rule, ...but perhaps this should get you started...

JeffCoachman
Rey Obrero (Capricorn1)Commented:
a better way, to create more rules is to use  Expression Is and the IN clause, something like this

Expression Is    [FieldName] In ("ABB","AAB","CCA")
micky runningAuthor Commented:
Thanks all for you ! assistance!
JeffCoachman thanks for the rule ! I used to write that way  but i can do better ! and i will !
Thanks for the good job !


Thanks !all are good solutions !
Flyster,Jeffrey Coachman,Scott McDaniel,

Scott McDaniel that my actual data is because it give some clasification to  to the each record

Thanks to Flyster that a great  one but in the case
the data comes with ABA  i mean the repeat is not like  BAA or AAB but ABA

Jeffrey Coachman, you answer is great but I need an solutions  for  every combination !
 can be


Rey Obrero (capricorn1) that a good ! but have so many combinations
i mean can be FFH, HFF, FHF ect.. could be all the alphabet letters
Rey Obrero (Capricorn1)Commented:
so what are the combinations? and
what should be the format for each combinations?
micky runningAuthor Commented:
Rey Obrero ! thanks good friend !for you assistance !

could be  like AAB, ABC, BBC, we  looking for the double or repeat letter
like DDC OR GGH, GHG,   when the letter repeat an color should be
put to let know is an repeat letter !

that why have to be conditional formating for...
Rey Obrero (Capricorn1)Commented:
how are this values appears in the table?
upload a sample db.
Rey Obrero (Capricorn1)Commented:
try this first,
create a query like this

SELECT Table1.FieldName, IIf(Mid([Fieldname],1,1)=Mid([Fieldname],2,1),-1,IIf(Mid([Fieldname],1,1)=Mid([Fieldname],3,1),-1,IIf(Mid([Fieldname],2,1)=Mid([Fieldname],3,1),-1,0))) AS CF
FROM Table1;

do your conditional formatting based on the field CF with values = -1


.
Rey Obrero (Capricorn1)Commented:
actually, try using this as the expression

Expression Is   IIf(Mid([FieldName],1,1)=Mid([FieldName],2,1),-1,IIf(Mid([FieldName],1,1)=Mid([FieldName],3,1),-1,IIf(Mid([FieldName],2,1)=Mid([FieldName],3,1),-1,0)))=-1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
micky runningAuthor Commented:
REY

Why the -1??
micky runningAuthor Commented:
REY
I tested but is not working !
the expression
Rey Obrero (Capricorn1)Commented:
can you post the image of your conditional formatting window.
micky runningAuthor Commented:
CONDITIONAL FORMATING WINDOWS
HERE WE ARE !
Rey Obrero (Capricorn1)Commented:
is the name of the control "FieldName" , you have to change that value to the actual name of your control.
micky runningAuthor Commented:
REY
yes I did
y change the field name to my  actual field name

but no working!
micky runningAuthor Commented:
Rey my excuses ! you Rigth ! is working
I write  in one of the field name an error letter in the name


BUT  verify like you say and is working  Great !!!

you the best Rey!
micky runningAuthor Commented:
THE BEST!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.