Make field background yellow if the field contains []

In a datasheet view form, how can I make a field background color yellow if the field contains []  (double brackets)
SteveL13Asked:
Who is Participating?
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.

SteveL13Author Commented:
So to further explain, if the field read "Some body [] did something"   -  The I want the field background to be yellow.  So anytime [] appears in the cell I want the background to be yellow.
0
Paul MacDonaldDirector, Information SystemsCommented:
Here are instructions from Microsoft Support that describe conditional formatting in Access 2007.  Here is a similar set of instructions that relate to Access 2010, 2013 and 2016.  One of them may work for you.
0
SteveL13Author Commented:
This all seems to work with numbers.  But I am working with text.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

PatHartmanCommented:
Are you actually looking for the characters []?  Did you try the Like operator?
0
SteveL13Author Commented:
Yes. I'm looking for those two characters right next to each other. I don't know how to use Like in VBA coding.
0
SteveL13Author Commented:
Or in conditional formatting.
0
PatHartmanCommented:
Sorry, you need to use Instr()
Instr.JPG
0

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
Garfield SamuelsProject ManagerCommented:
You can try to select the field in the report and select conditional formatting.

On the conditional formatting dialog, select new rule.
Change "Field value is" to "Expression is"
Enter : <Fiels name> Contains "[]" : in the formula box
Set the formatting you want and OK to close the dialog.

That should do it.
0
SteveL13Author Commented:
Garfield, you suggestion did not work.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.