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

Sorting dates in Crystal reports

Posted on 2009-07-10
8
277 Views
Last Modified: 2013-11-26
Hi Experts

Can anyone please help me out with a sorting in my crystal reports? I have to sort the report from #date1# to #date2#. But I don't know how to and can't find something on the web

Any help would be greatly appreciated

Thanx in advance
0
Comment
Question by:Benvor
  • 3
  • 3
  • 2
8 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 24822607
0
 
LVL 18

Expert Comment

by:UnifiedIS
ID: 24822638
Are date1 and date2 different fields or do you need to sort by one date field?
To sort by one, either add a group for the date or use the sort expert (the a z icon from the crystal toolbar in VS).
0
 

Author Comment

by:Benvor
ID: 24822677
I have 2 parameter fields, Date_From + Date_To and when form loads, the report must only be the dates between this 2 dates
0
The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

 
LVL 18

Expert Comment

by:UnifiedIS
ID: 24822802
You need to use the select expert (icon looks like a hand picking up circles).  Choose your date field and then set it to "is between" and then choose your parameter dates as the two options.
0
 
LVL 18

Accepted Solution

by:
UnifiedIS earned 500 total points
ID: 24822836
You'll end up with a formula that looks like this:
{tbl.Date} in {?date1} to {?date2}
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 24822849
That does not sound like you need to do SORTING in your report as is the original question!
0
 

Author Comment

by:Benvor
ID: 24822877
Sorry for the misleading description..............
0
 

Author Comment

by:Benvor
ID: 24823019
Thanx allot UnifiedIS. Now My program is finished at last. Thank you
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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

789 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