multiple tables in a list

  • I have 4 tables each one having it's own dataset. I have to repeat these 4 tables for eight companies. I want to create a multiselect drop down list and have the 4 tables in a list so the tables will be repeated for the companies chosen.

    So the results I want is:

    Company 1

    Table 1

    Table 2

    Table 3

    Table 4

    Company 2

    Table 1

    Table 2

    Table 3

    Table 4

    I set the list dataset to Company Name and cut and paste one of the tables in the list. I got an error that summed up to that the table cannot have a different dataset then the list.

    Any suggestions?

  • rs80 (6/3/2009)


    I have 4 tables each one having it's own dataset. I have to repeat these 4 tables for eight companies. I want to create a multiselect drop down list and have the 4 tables in a list so the tables will be repeated for the companies chosen.

    So the results I want is:

    Company 1

    Table 1

    Table 2

    Table 3

    Table 4

    Company 2

    Table 1

    Table 2

    Table 3

    Table 4

    I set the list dataset to Company Name and cut and paste one of the tables in the list. I got an error that summed up to that the table cannot have a different dataset then the list.

    Any suggestions?

    Instead of having 4 separate tables for each company, just add a company id column to each of the 4 tables, and then select from those for the data that you need.

    Wayne
    Microsoft Certified Master: SQL Server 2008
    Author - SQL Server T-SQL Recipes


    If you can't explain to another person how the code that you're copying from the internet works, then DON'T USE IT on a production system! After all, you will be the one supporting it!
    Links:
    For better assistance in answering your questions
    Performance Problems
    Common date/time routines
    Understanding and Using APPLY Part 1 & Part 2

  • Already asked Business if I could do it that way and the answer was no. They want to see it the way below for comparison purposes:

    Company 1

    Table 1

    Table 2

    Table 3

    Table 4

    Company 2

    Table 1

    Table 2

    Table 3

    Table 4

  • Can you have a table with groups based on the Comapny dopdown and put a subreport inside the company group that takes companyid as a parameter?

    [font="Arial"]Are you lost daddy? I asked tenderly.
    Shut up he explained.
    [/font]
    - Ring Lardner

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply