I am running croostab queries over a huge a mount of data and require only data that falls within a certain period. This period changes throughout the year (funny that) and the columns created by the crosstab in one period might not be the same in the next.
My Problem;
Other queries run off of the crosstab and use the fields created to go on and further produce reports. If the current period does not contain a column that was included within last periods crosstab then the queries fall over as it cannot find a column it is looking for.
I have thought about creating a field in a query that will populate if the crosstab creates the same one and will be zero if it does not.
Example;
Period 1 - crosstab creates columns 1,2,3,4 and other queries use these
Period 2 - crosstab creates columns 1,3,5,7. The queries fallover as they were looking for columns 2 & 4
My Problem;
Other queries run off of the crosstab and use the fields created to go on and further produce reports. If the current period does not contain a column that was included within last periods crosstab then the queries fall over as it cannot find a column it is looking for.
I have thought about creating a field in a query that will populate if the crosstab creates the same one and will be zero if it does not.
Example;
Period 1 - crosstab creates columns 1,2,3,4 and other queries use these
Period 2 - crosstab creates columns 1,3,5,7. The queries fallover as they were looking for columns 2 & 4