Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: need help with record selection formula Post Reply Post New Topic
<< Prev  Page  of 2
Author Message
Ariel
Newbie
Newbie


Joined: 10 Jun 2010
Location: United States
Online Status: Offline
Posts: 33
Quote Ariel Replybullet Posted: 13 Dec 2011 at 7:05am
there are only about 5 members marked as billing (this is something new our membership department wants to do) and all the other members have 1 primary contact.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 13 Dec 2011 at 9:52am
ok, how about we look at things from a different perspective.
 
we know what we want, and the rules to get there, but either don't know how CR is deciding which records to display or physically can't because our requirements require too many reads of the data (if it is more than 2 it's too many...the main report and a subreport), so what I have found to be the simplest, most flexible solution is to not join my report to a database and read the tables.
 
So how do you get the data, stored procedures.  I understand that not everyone knows how to create them, but they are worth the effort.  You can do pretty much whatever you want and return only the columns that you want.  You can place items into a table and update the values that you need to with whatever are the business rules for the report, and it is one hit to the database.  Because of the flexiblity, I rarely need subreports...just have the stored proc return the values that you need in the row...then it is just a formatting issue.
 
so the short of it is, I would recommend writing a stored proc (if possible) as it will allow you to see your data and get the values that you need.
 
HTH
IP IP Logged
Ariel
Newbie
Newbie


Joined: 10 Jun 2010
Location: United States
Online Status: Offline
Posts: 33
Quote Ariel Replybullet Posted: 13 Dec 2011 at 9:58am
Thank you!  I will try that.
Ariel
IP IP Logged
<< Prev  Page  of 2
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