I have a subreport, and in the Group Footer, I have string, that I am trying to change the background color using the following code.
If WorkID IS equal to the Technical.workId or the Development.WorkId, then the color code works, but the other items are solid black.

If If WorkID IS NOT equal to or null to the Technical.workId or the Development.WorkId, the my report is blank.

if
{?Pm-DB.ID}={Work.Num}
and {Work.WorkID}<>{Technical.workId}
and {Work.WorkID}<>{Development.WorkId} Then crNoColor
else if
(
{?Pm-DB.ID}={Work.Num}
and {Work.WorkID}={Development.WorkId}
and {Development.PlanName}={Project.ProjectName}
and {Development.devStatus} = "R" )
then crRed
else if (
{?Pm-DB.ID}={Work.Num}
and {Work.WorkID}={Development.WorkId}
and {Development.PlanName}={Project.ProjectName}
and {Development.devStatus} = "A" )
then crYellow
else if (
{?Pm-DB.ID}={Work.Num}
and {Work.WorkID}={Tech.workId}
and ({Resource.Team Name}like "Tech*")
and {Technical.TechStatus} = "R" )
then crRed
else if (
{?Pm-DB.ID}={Work.Num}
and {Work.WorkID}={Tech.workId}
and ({Resource.Team Name}like "Tech*")
and {Technical.TechStatus} = "A" )
then crYellow
else if (
{?Pm-DB.ID}={Work.Num}
and {Work.WorkID}={Tech.workId}
and ({Resource.Team Name}like "QA*")
and {Technical.TechStatus} = "R" )
then crRed
else if (
{?Pm-DB.ID}={Work.Num}
and {Work.WorkID}={Tech.workId}
and ({Resource.Team Name}like "QA*")
and {Technical.TechStatus} = "A" )
then crYellow
You have to explicitly check for null using
isnullotherwise the formula gives up.