Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Color Conditioning on Field

Status
Not open for further replies.

newbie0423

IS-IT--Management
Oct 29, 2012
103
US
Hello,
I have a field that needs to have two conditions met. I was wondering if this could be done. below is the formula I'm using. I am getting a message a boolean is required. How should I write this formula? I am using Crystal XI

if{v_SAR_CR_Times_FromPg20.PTOutRoom}<{v_SAR_CR_Times_FromPg20.PTInRoom} then
crRed
else
crNoColor
and
if {v_SAR_CR_Times_FromPg20.PTOutRoom}<{v_SAR_CR_Times_FromPg20.ProcEnd}then
crRed
else
crNoColor
 
try this:

if{v_SAR_CR_Times_FromPg20.PTOutRoom}<{v_SAR_CR_Times_FromPg20.PTInRoom} AND {v_SAR_CR_Times_FromPg20.PTOutRoom}<{v_SAR_CR_Times_FromPg20.ProcEnd} then
crRed
else
crNoColor


Viewer and Scheduler for Crystal reports and SSRS.
 
Thanks Peter, it worked I just changed the AND operator and used OR.

Thanks a bunch!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top