Hi all;
I am really new to filters and I am not even sure if that is what I need to do here, but here it is, really simple I am sure....
I just want to be able to use a combo box as a lookup for a field (which I have done), but I only want to be able to scroll through the records on the form that meet that look up critieria.
So, I have a main form that looks like this:
SELECT DISTINCT LandParcels.MAINCLASSIFICATION, LandParcels.ASSET_ID, LandGroup_Attributes.GROUP_ID, LandParcels.ASSET_TYPE, LandParcels.PID, LandParcels.OWNER, LandParcels.ACQ_DATE, LandParcels.ACQ_TYPE, LandGroup_Attributes.LANDNAME, Parks.PARK_NAME
FROM ((LandParcels RIGHT JOIN LandGroup_Attributes ON LandParcels.GROUP_ID = LandGroup_Attributes.GROUP_ID) LEFT JOIN Parkland_Attributes ON LandParcels.GROUP_ID = Parkland_Attributes.GROUP_ID) LEFT JOIN Parks ON Parkland_Attributes.PARK_ID = Parks.PARK_ID
ORDER BY LandParcels.MAINCLASSIFICATION, LandParcels.ASSET_ID;
and the combo box look up:
SELECT [LAND QUERY].PID
FROM [LAND QUERY]
ORDER BY [LAND QUERY].PID;
This DOES look up the PID that I put in, but I can also then scroll through the over 9000 other records using the navigation buttons. I don't want to get rid of the navigation buttons, because sometimes there are two or three records with the same PID and I do want to be able to scroll through those.
Can someone help?
THanks!!
piovest
I am really new to filters and I am not even sure if that is what I need to do here, but here it is, really simple I am sure....
I just want to be able to use a combo box as a lookup for a field (which I have done), but I only want to be able to scroll through the records on the form that meet that look up critieria.
So, I have a main form that looks like this:
SELECT DISTINCT LandParcels.MAINCLASSIFICATION, LandParcels.ASSET_ID, LandGroup_Attributes.GROUP_ID, LandParcels.ASSET_TYPE, LandParcels.PID, LandParcels.OWNER, LandParcels.ACQ_DATE, LandParcels.ACQ_TYPE, LandGroup_Attributes.LANDNAME, Parks.PARK_NAME
FROM ((LandParcels RIGHT JOIN LandGroup_Attributes ON LandParcels.GROUP_ID = LandGroup_Attributes.GROUP_ID) LEFT JOIN Parkland_Attributes ON LandParcels.GROUP_ID = Parkland_Attributes.GROUP_ID) LEFT JOIN Parks ON Parkland_Attributes.PARK_ID = Parks.PARK_ID
ORDER BY LandParcels.MAINCLASSIFICATION, LandParcels.ASSET_ID;
and the combo box look up:
SELECT [LAND QUERY].PID
FROM [LAND QUERY]
ORDER BY [LAND QUERY].PID;
This DOES look up the PID that I put in, but I can also then scroll through the over 9000 other records using the navigation buttons. I don't want to get rid of the navigation buttons, because sometimes there are two or three records with the same PID and I do want to be able to scroll through those.
Can someone help?
THanks!!
piovest