I have a simple select query created in MS Access 2000. It is simple, however, it is based on about 8 other queries. The SQL statement is as follows:
******************************************************
SELECT qry_EISComparison_CurYrLastYrTotals.Division, qry_EISComparison_CurYrLastYrTotals.CurMonthLbs, qry_EISComparison_CurYrLastYrTotals.CurMnthYTDLbs, qry_EISComparison_CurYrLastYrTotals.CurMnthLastYrLbs, qry_EISComparison_CurYrLastYrTotals.CurMnthLastYrYTDLbs
FROM qry_EISComparison_CurYrLastYrTotals;
*******************************************************
What I need to do is to modify the query headers for the CurMonthLbs, CurMnthYTDlbs, CurMnthLastYtLbs, and CurMnthLastYrYTDLBs fields dynamically. These headers will be based upon parameters that the user enters into the form. I can capture the desired header names fine and push it to variables; but what SQL statement would I use to allow me to modify the column headers to say for instance:
CurMnthLbs would become Jun-04
CurMnthYTDLbs would become Jun-04 YTD.
Now of course, I would need to do this dynamically. Thanks
******************************************************
SELECT qry_EISComparison_CurYrLastYrTotals.Division, qry_EISComparison_CurYrLastYrTotals.CurMonthLbs, qry_EISComparison_CurYrLastYrTotals.CurMnthYTDLbs, qry_EISComparison_CurYrLastYrTotals.CurMnthLastYrLbs, qry_EISComparison_CurYrLastYrTotals.CurMnthLastYrYTDLbs
FROM qry_EISComparison_CurYrLastYrTotals;
*******************************************************
What I need to do is to modify the query headers for the CurMonthLbs, CurMnthYTDlbs, CurMnthLastYtLbs, and CurMnthLastYrYTDLBs fields dynamically. These headers will be based upon parameters that the user enters into the form. I can capture the desired header names fine and push it to variables; but what SQL statement would I use to allow me to modify the column headers to say for instance:
CurMnthLbs would become Jun-04
CurMnthYTDLbs would become Jun-04 YTD.
Now of course, I would need to do this dynamically. Thanks