C
CJ
Hi
I have historical data joined by a Union query.
The data shows who occupied a particular location and the order in which
they lived there. The person with the highest History number is the current
resident. I need to retrieve only the current residents in my report. My
union query is as follows:
SELECT Member, strDistrict, strLandLocation, bytHistory
FROM tblResVotingListTemp
UNION ALL
SELECT Member, strDistrict, strLandLocation, bytHistory
FROM tblBusVotingListTemp
ORDER BY strLandLocation ASC, bytHistory DESC;
I'm not sure if I should be trying to accomplish this with the query (my
preference) or as a filter of some sort in the report. I don't know how to
do either......thus my question!
Thanks
CJ
I have historical data joined by a Union query.
The data shows who occupied a particular location and the order in which
they lived there. The person with the highest History number is the current
resident. I need to retrieve only the current residents in my report. My
union query is as follows:
SELECT Member, strDistrict, strLandLocation, bytHistory
FROM tblResVotingListTemp
UNION ALL
SELECT Member, strDistrict, strLandLocation, bytHistory
FROM tblBusVotingListTemp
ORDER BY strLandLocation ASC, bytHistory DESC;
I'm not sure if I should be trying to accomplish this with the query (my
preference) or as a filter of some sort in the report. I don't know how to
do either......thus my question!
Thanks
CJ