Solved

Sorting dates in Crystal reports

Posted on 2009-07-10
8
291 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
[X]
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
  • 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 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