Ok. I have a problem. I have a subform that is linked to a main for by a unique key.
Within the subform, I have two combo boxes and I want one to filter based upon the input of the other. I developed a query for the second combo box which says:
SELECT dbo_DriverCons.DriverNo, dbo_DriverCons.CityCode
FROM dbo_DriverCons
WHERE (((dbo_DriverCons.CityCode)=[forms]![F affiliate quotes]![city]));
Then I created a 'Refresh Macro' on the GotFocus Event of the 2nd combo box. It works perfectly fine when I just open the subform on it's own, but it doesn't work when I open the main form. Must I make a visual basic routine in order to get this thing to work?
If you have an answer and post it here, please e-mail me at
(e-mail address removed) as I'm trying to finish this project today and this is one of my last hold-ups.
thanks,
don
Within the subform, I have two combo boxes and I want one to filter based upon the input of the other. I developed a query for the second combo box which says:
SELECT dbo_DriverCons.DriverNo, dbo_DriverCons.CityCode
FROM dbo_DriverCons
WHERE (((dbo_DriverCons.CityCode)=[forms]![F affiliate quotes]![city]));
Then I created a 'Refresh Macro' on the GotFocus Event of the 2nd combo box. It works perfectly fine when I just open the subform on it's own, but it doesn't work when I open the main form. Must I make a visual basic routine in order to get this thing to work?
If you have an answer and post it here, please e-mail me at
(e-mail address removed) as I'm trying to finish this project today and this is one of my last hold-ups.
thanks,
don