Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: conditional formating for group name Post Reply Post New Topic
Author Message
hewittjl
Newbie
Newbie


Joined: 27 Apr 2009
Online Status: Offline
Posts: 1
Quote hewittjl Replybullet Topic: conditional formating for group name
    Posted: 27 Apr 2009 at 3:17pm
I have grouped my data by week but want the current week to have a border around the group name.  I've tried several date/time formulas but they don't highlight the current week.
 
This is what I have now but it puts a border around the previous week until the middle of the week and then a border appears around the current week.
 
if {table.datefield} in Last7Days then crDoubleLine else crNoLine
 
Any help would be appreciated.  Thanks!
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 27 Apr 2009 at 8:13pm

instead of last7 days you could use a dateadd from the day. something like

if {table.datefield} in dateadd("d",currentdate,-day(currentdate)) to currentdate then crDoubleLine else crNoLine


Edited by DBlank - 27 Apr 2009 at 8:14pm
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.