Results 1 to 3 of 3

Thread: [RESOLVED] Can I create a variable number of tables based on a parameter

  1. #1

    Thread Starter
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,957

    Resolved [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

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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.

  3. #3

    Thread Starter
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,957

    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
  •  



Click Here to Expand Forum to Full Width