I have this very simple union query ....
SELECT [Department],[17/05/2005]
FROM [qryVitalStatsCallsOffered]
UNION ALL SELECT [Department],[17/05/2005]
FROM [qryVitalStatsCallsabd];
the problem i have is the field [17/05/2005] is a date field in qryVitalStatsCallsOffered and depending on what date the user selects from a calender control on a form (frmPreviewReports!axSelectDate)depends on what date qryVitalStatsCallsOffered will return
So i was wondering if anybody knows a way of me being able to automatically change the name of [17/05/2005]in the union query to whatever date is selected rather than having to go into the design view of the union query and manually change it each time
SELECT [Department],[17/05/2005]
FROM [qryVitalStatsCallsOffered]
UNION ALL SELECT [Department],[17/05/2005]
FROM [qryVitalStatsCallsabd];
the problem i have is the field [17/05/2005] is a date field in qryVitalStatsCallsOffered and depending on what date the user selects from a calender control on a form (frmPreviewReports!axSelectDate)depends on what date qryVitalStatsCallsOffered will return
So i was wondering if anybody knows a way of me being able to automatically change the name of [17/05/2005]in the union query to whatever date is selected rather than having to go into the design view of the union query and manually change it each time