Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Sorting Post Reply Post New Topic
Author Message
KevV
Senior Member
Senior Member


Joined: 19 May 2011
Online Status: Offline
Posts: 106
Quote KevV Replybullet Topic: Sorting
    Posted: 14 Jun 2011 at 8:28am
I have a report that I am sorting by a group and it works fine but when I add a second sort by a time field that is stored as a string value and run the report it comes back as a blank report.
 
Thanks
KevV 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Jun 2011 at 8:30am
likely this is a join issue
my guess is that the time field is the only field you are using from a table. When you added it to the report it enforced the join and returned zero records
IP IP Logged
KevV
Senior Member
Senior Member


Joined: 19 May 2011
Online Status: Offline
Posts: 106
Quote KevV Replybullet Posted: 14 Jun 2011 at 12:00pm
I kind of wondered about that but I was confused because I am using a field from that table in a formula in the report. I fiugred it would not work if I used any of those fields from the second table.
 
Thanks
KevV 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 Jun 2011 at 3:40am
this does put a bit of a question mark on if the issue is a join enforcement.
you can test it out by removing the sort so you get all of your values back, go into the DB expert
select the join and then select the enforce option that is matching to your join type. did your data disappear again?
IP IP Logged
KevV
Senior Member
Senior Member


Joined: 19 May 2011
Online Status: Offline
Posts: 106
Quote KevV Replybullet Posted: 15 Jun 2011 at 7:54am

I tried all the of the enforces and the report worked on all of them. I closed the report and ran it again and it worked. So I am not sure what was happening. Thanks for the help.

 
KevV
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.