SQL Expression to Highlight cells

I'm trying to highlight a field in my report to make it easier for the user.  I'm using Visual Studio 2012 to write it.  I have a field called bin_cd (varchar40) that I want to highlight if it does not container "ASSM", "ASSEMBLY", "PACKAGE" or does not start with 4P.  The ones that start with 4P will have 3 additional characters have the 4P.  How would I go about doing this?  I've tried to write the expression and get errors.  Even when I try to write the expression for just one rule, I do not get the error, but it does not highlight the field.
LVL 4
Sue TaylorProject ManagerAsked:
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.

arnoldCommented:
Where do you want the highlighting to occur? Within ssms, or using SQL reporting service, the report display of the resulting data?

Depending on the report, you would either change background color, or the color of the foreground, font.

Not sure ssms includes an option to alter display coloring.
If you use excel to pull data from SQL server, it might be possible to change cell color scheme based on the value.........
0
Mark WillsTopic AdvisorCommented:
You said you could get one of the rules to work, but not when adding the other.

Can you show us what you have done ?

Both working and then broken ?

What error ?

Assume you are using SSRS - or, if not, then what are you using ?

If SSRS, please read : https://technet.microsoft.com/en-us/library/ms156400(v=sql.100).aspx
0
Arifhusen AnsariBusiness Intelligence Developer and AnalystCommented:
Hello ,

What i have understood from your question is " you want to highlight text field in ssrs report based on the value of column, if it does not contain "ASSM", "ASSEMBLY" and "PACKAGE" and also it must not star with 4P. that filed or text box has to be highlighted.

I tried to replicate your scenario with sample data. I added one column in query to set flag to set back color as 1 or 0. If column value is 1 it will set color or it will not modify any color.

Find attached report. Hope it will help you.

REgards
Arif
ChangeBackColorConditional.rdl
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
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
SQL

From novice to tech pro — start learning today.