|
-
Jul 2nd, 2008, 09:35 AM
#1
[RESOLVED] Can I create a variable number of tables based on a parameter
I have a report designed in VS 2005 which shows summarised data for a week. I've just been asked if I can add a parameter to it so the user can specify the number of weeks they want to display. The report will then need to show a separate table for each individual week (ie the same result as running the existing report several times).
Is there a way I can achieve this? I can't see where I'd even start to resolve this.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
-
Jul 2nd, 2008, 11:47 AM
#2
Re: Can I create a variable number of tables based on a parameter
I don't use VS 2005 but wouldn't you just group the report by week.
For example, in Crystal Reports, I would simply add a Group on a date field and set the option "for each week". The Record Selection Formula would include code to select data based on a start and end date. The end date could be user supplied or calculated ie Start Date + Total Number of Weeks.
-
Jul 3rd, 2008, 03:22 AM
#3
Re: Can I create a variable number of tables based on a parameter
Hi Bruce, thanks for the response.
I just managed to find a grouping option (though it's a bit tricky to find, it's not under the main properties). I'll have a play and see if I can get it working. Thanks for the hint, I think it pointed me in the right direction.
edit> Yep this is working a treat. Thanks Bruce.
Last edited by FunkyDexter; Jul 3rd, 2008 at 06:27 AM.
The best argument against democracy is a five minute conversation with the average voter - Winston Churchill
Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|