I'm looking at the database:
Parking I3 forum.accdb
I'm looking at the form:
FrmBooking
Do this:
Change the APARTMENT NUMBER field (combo25) to an UNBOUND field (Delete the control source of ResidentID)
Change the ROW SOURCE of the APARTMENT NUMBER field (combo25) to:
Code:
SELECT TblResident.ApartmentNumber
FROM TblResident
GROUP BY TblResident.ApartmentNumber;
Change the ROW SOURCE of the RESIDENTID field to
Code:
SELECT TblResident.ResidentID, TblResident.ResidentName, TblResident.ApartmentNumber
FROM TblResident
WHERE (((TblResident.ApartmentNumber)=[forms]![frmBooking]![combo25]));
In the AFTER UPDATE event of the APARTMENT NUMBER field (combo25) put this:
When you select an apartment from the apartment list it will show you only the people related to that apartment.