accessjack
Programmer
Does anyone know how to create a select query to display a dynamic # of columns from a underlying query.
I have a table called <tblMatrix> with 13 fields/columns:
Account 01 02 03 04 05 06 07 08 09 10 11 12
where columns 01 thru 12 represent months with financial data or null values. I know this data isn't normalized, and normalization is not an option.
Using a form called <frmSelection> the user picks a beginning month <cboStart> and ending month <cboEnd> and a button on the form will run vba code that returns all data from the underlying query <qryData> but should only display fields columns between the user selections. For example, if the user chooses 02 & 05, I'd expect the query to return the following:
Account 02 03 04 05 --> 5 columns that exclude the rest. The columns are choosen on the fly so I can't create a fixed query.
Any ideas,
Thanks,
Access Jack
I have a table called <tblMatrix> with 13 fields/columns:
Account 01 02 03 04 05 06 07 08 09 10 11 12
where columns 01 thru 12 represent months with financial data or null values. I know this data isn't normalized, and normalization is not an option.
Using a form called <frmSelection> the user picks a beginning month <cboStart> and ending month <cboEnd> and a button on the form will run vba code that returns all data from the underlying query <qryData> but should only display fields columns between the user selections. For example, if the user chooses 02 & 05, I'd expect the query to return the following:
Account 02 03 04 05 --> 5 columns that exclude the rest. The columns are choosen on the fly so I can't create a fixed query.
Any ideas,
Thanks,
Access Jack