Using Access 2007
This should be relatively easy but, for whatever reason, I am having trouble getting things to work properly.
On a form there are 2 list boxes.
The first list box, called lstYearLastVisit, has the following row source
The second, called lstPatients, has the following row source
I want to be able to change the row source in lstPatients, to reflect the Year selected in lstYearLastVisit.
Tom
This should be relatively easy but, for whatever reason, I am having trouble getting things to work properly.
On a form there are 2 list boxes.
The first list box, called lstYearLastVisit, has the following row source
Code:
SELECT qryPatients.YearLastVisit
FROM qryPatients
GROUP BY qryPatients.YearLastVisit;
The second, called lstPatients, has the following row source
Code:
SELECT tblPatients.PatientID, [PatLast] & ": " & [PatFirst]+(" " & [PatMiddle]) AS FullName, tblPatients.PatFirst, tblPatients.PatMiddle, tblPatients.PatLast, tblPatients.DateBirth, tblPatients.DateLastVisit, Year([DateLastVisit]) AS YearLastVisit
FROM tblPatients;
I want to be able to change the row source in lstPatients, to reflect the Year selected in lstYearLastVisit.
Tom