I have a query that can return between 1 and 6 columns. I will use
colors for example. For some months the report can have 2 colors,
other months it can have up to 6 colors. Example
Report1:
Color1 Color2 Color3 Color4 Color5 Color6
White Red
Report2:
Color1 Color2 Color3 Color4 Color5 Color6
Blue Red Green Purple Brown Black
How can I hard code the categories labeled Color1-Color6 with the
attached colors, which can be different each time and include 1 to 6
different options. Something like autonumber would help, but how can
you do that in a query?
|