Scenario: An item can be assessed under 15 different categories, each category has between 15-25 sub categories. Most of the time a report would not need all of these categories and sub-categories. But (however rare it may) that all categories/sub-categores would be used, thus giving a report with nearly 300 fields. Of course Access will not allow a query to have more than 255 fields.
Using Access XP the complex query taking in every category and sub-category would look something like this...
Select tbl00.revID, tbl01.cat1, tbl01.cat2, ...tbl01.cat25, tbl02.cat1, tbl02.cat2, ...tbl02.cat25,...tbl15.cat25 FROM tbl00 left join on tbl00.revID=tbl01.revID ...etc
I hope that the above query is understood well enough without having to type out the entire (nearly) 300 fields. However, if more info is needed, please let me know.
Question: So, my question is this, does anyone have a workaround for this problem. A way to approach this that would delivery a report no matter how many categories were used for a given item - even if all 300 fields were requested?
(Note: I have managed to build a report having 15 sub-reports, where each sub-report held only one main category and it's sub-categories. This has worked, but has bloated the front-end's size).
Thanks.
Using Access XP the complex query taking in every category and sub-category would look something like this...
Select tbl00.revID, tbl01.cat1, tbl01.cat2, ...tbl01.cat25, tbl02.cat1, tbl02.cat2, ...tbl02.cat25,...tbl15.cat25 FROM tbl00 left join on tbl00.revID=tbl01.revID ...etc
I hope that the above query is understood well enough without having to type out the entire (nearly) 300 fields. However, if more info is needed, please let me know.
Question: So, my question is this, does anyone have a workaround for this problem. A way to approach this that would delivery a report no matter how many categories were used for a given item - even if all 300 fields were requested?
(Note: I have managed to build a report having 15 sub-reports, where each sub-report held only one main category and it's sub-categories. This has worked, but has bloated the front-end's size).
Thanks.