Solved

Sorting dates in Crystal reports

Posted on 2009-07-10
8
270 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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