Skip to content
Advertisement

Sending a HTML based on SQL server table with conditional formatting

I can send a mail based upon a table in SQL. However, when it comes to changing color on a cell based upon a certain value (conditional formatting). I just cant get it to work. I’ve searched on here and can’t find anything based upon a field value.

A segment of my code is as follows:

When I try the above it sends the Case statement as free text not picking up the HTML and the DB Value. I would be grateful in some guidance.

The output I’m getting by the above is:

enter image description here

Advertisement

Answer

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement