Solved

Crystal Reports Group by week label

Posted on 2009-07-16
4
304 Views
Last Modified: 2012-06-27
I have a date grouped by week. How do I display the week value. Like 7/12/09 to 7/18/2009?
I tried something like this but it wants a date for the datedadd function.
GroupName ({Command.SENT_DATE}, "weekly") & " to " & DateAdd ("d",6 ,GroupName{Command.SENT_DATE}, "weekly") )

Open in new window

0
Comment
Question by:cobolinx1
  • 2
4 Comments
 
LVL 5

Expert Comment

by:jgbreeden
ID: 24870218
if the group name is a properly formatted date, you could use CDATE(GroupName{Command.SENT_DATE}, "weekly")) inside your DateAdd formula
0
 
LVL 18

Expert Comment

by:UnifiedIS
ID: 24870250
GroupName ({Command.SENT_DATE}, "weekly") & " to " & DateAdd ("d",6 ,CDATE(GroupName{Command.SENT_DATE}, "weekly") ))
0
 

Author Comment

by:cobolinx1
ID: 24871015
It gives me the error "the ) is missing" on {Command.SENT_DATE} in the dateadd function
0
 
LVL 18

Accepted Solution

by:
UnifiedIS earned 500 total points
ID: 24871092
GroupName ({Command.SENT_DATE}, "weekly") & " to " & DateAdd ("d",6 ,CDATE(GroupName({Command.SENT_DATE}, "weekly") ))
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now