| re: Transposing Data without hardcoding
Thanks for the response mmccarthy. Unfortunately, I don't think that adjusting my table structure would help the situation any (I just finished trying).
If I split Table 3 into Table 3A and Table 3B, such that
Table 3A
UniqueID, CategoryID, OtherGroupingID, DataPiece1
Table 3B
UniqueID, CategoryID, OtherGroupingID, DataPiece2
then we do solve the immediate problem of being able to create multiple crosstab queries. But then I'm in a pickle again when I try to relink the two cross tabs of Table 3A and Table 3B, because the crosstabs come out like this:
Table3A CrossTab
_________ Grouping1 Grouping2 Grouping3
Category1 datapiece1 datapiece1 datapiece1
Category2 datapiece1 datapiece1 datapiece1
Category3 datapiece1 datapiece1 datapiece1
Table3B CrossTab
_________ Grouping1 Grouping2 Grouping3
Category1 datapiece2 datapiece2 datapiece2
Category2 datapiece2 datapiece2 datapiece2
Category3 datapiece2 datapiece2 datapiece2
I need to get this into the same table somehow. The only way i can think of is to link accross Category. But if i do that then I either have to select * (which means repeating category b/c its in both tables), or stating specifically that I want Grouping1, Grouping2,... etc. which, of course, defeats the purpose. I guess this could be solved if there were some sort of SELECT * EXCEPT command, but failing that, I'm not sure how to approach this.
BTW, this is all complicated by the fact that we're not just talking about table 3A and 3B, its more like 3A through 3Z.
I did some reading on the subject and was wondering if i might need dynamic queries to solve this problem? Is that even possible in Access, and if it is, how might I go about doing it?
Thanks again!
|