Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: CrossTab Conditional Formatting Post Reply Post New Topic
Author Message
Dr4ke
Senior Member
Senior Member


Joined: 09 May 2014
Online Status: Offline
Posts: 209
Quote Dr4ke Replybullet Topic: CrossTab Conditional Formatting
     Posted: 23 Oct 2014 at 4:36am
I currently have a Cross-Tab with the following lapout

Row Name   Column1   Column2   Column3

The Summarized Field is 'Max of {Date_Field}' to get the last date/time reported.

I'm now trying to conditionally format the background colour using this formula:

 If {Date_Field}<DateAdd('d',-1,CurrentDate) Then crRed else crNoColor 


However it either turns everything red or nothing red.... And not all dates meet or don't meet the condition.


Edited by Dr4ke - 23 Oct 2014 at 4:38am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 23 Oct 2014 at 4:51am
try
If currentfieldvalue<DateAdd('d',-1,CurrentDate) Then crRed else crNoColor
IP IP Logged
Dr4ke
Senior Member
Senior Member


Joined: 09 May 2014
Online Status: Offline
Posts: 209
Quote Dr4ke Replybullet Posted: 23 Oct 2014 at 4:52am
legend. Thanks very much!
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum