I have a query called FilingHeaderQry in MS Access.
Due to some crosstab joins, the number of columns are constantly changing based on the crosstab and a lot are duplicated.
I would like to use some VBA to dynamically build the select statement that will call only the columns that don't end with 'ELIM'.
For example, FilingHeaderQry will have the following columns:
State, Product, Date, Count, StateElim, ProductElim, DateElim, Sum
I would like the select statement to be:
Select State, Product, Date, Count, Sum
from FilingHeaderQry