Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: SQL in formulas Post Reply Post New Topic
Author Message
kirandb
Groupie
Groupie
Avatar

Joined: 10 Jun 2009
Location: United States
Online Status: Offline
Posts: 69
Quote kirandb Replybullet Topic: SQL in formulas
    Posted: 29 Dec 2009 at 7:47am

My SQL in the report has a group section which has 4 different groups. I have to display all these four groups at the top of the report in the report header section. How do i do this ?Any suggestions.

I was trying to write the SQL as a formula and use the formula but i have no idea how to approach it. Please suggest.
 
Thanks,
Kiran
share your knowledge
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 29 Dec 2009 at 11:25am
If the group names are always the same, you can hard-code them into a text object in the report header.  However, if the group names will changed based on data, you'll have to use a subreport.  The subreport will use the same tables as the main report.  If your main report uses any parameters to filter data, you'll want to link the subreport on those parameters but you don't need any other links to data in the report.
 
Generally I try to avoid subreports, but displaying what is essentially "summary" data at the beginning of a report is a place where that's the only way to get what you want.
 
-Dell
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.031 seconds.