Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Crystal Reports Group by week label

Posted on 2009-07-16
4
308 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

861 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