Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Repeat a record in SQL Statement or Crystal Report Post Reply Post New Topic
Author Message
mapcorp
Newbie
Newbie


Joined: 29 Oct 2007
Online Status: Offline
Posts: 2
Quote mapcorp Replybullet Topic: Repeat a record in SQL Statement or Crystal Report
    Posted: 29 Oct 2007 at 5:01pm
Does anyone use Crystal Reports? I want to have a report ask the user how many times they want each record, label in this instance. Then take that number and print each record, label, that many times. I have seen how to repeat a field, but I want the whole details section repeated for each record.


Thank you,
IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 31 Oct 2007 at 1:00pm
You may have to create in your application a loop using a variable (number of times to use the datarow  in the dataset). Then run the report against it.  I am thinking the solution might further end up being using the variable to run the query the number of times and populate (append) the dataset with the row from each run of the query.
 
I am not aware of a simple way to do this in CR. If you find the solution please post it.  I am curious about what you get to work.
 
Regards,
 
John W.
IP IP Logged
mapcorp
Newbie
Newbie


Joined: 29 Oct 2007
Online Status: Offline
Posts: 2
Quote mapcorp Replybullet Posted: 31 Oct 2007 at 2:57pm
I created a auxilliar table with n rows..then join it with my data table. Its not very nice but is easy and works
IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 01 Nov 2007 at 8:56am
Hey it always comes down to what works. Thanks for letting us know how you solved the problem. Someone else can use it or build from it.
 
Regards,
 
John W.
IP IP Logged
IdoMillet
Groupie
Groupie


Joined: 26 Oct 2007
Location: United States
Online Status: Offline
Posts: 99
Quote IdoMillet Replybullet Posted: 11 Nov 2007 at 10:55am
Here's an FAQ I wrote about this: http://www.tek-tips.com/faqs.cfm?fid=3226
Just change the quantity field to a quantity parameter.

- Ido
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
www.MilletSoftware.com
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.000 seconds.