M
Meilu
Hi All,
I was wondering... is it possible to create a drop down
list based on a qry that requires a parameter?
Example:
I have 2 fields: City & Destination
I also have a qry that returns City w/ cooresponding
Destination.
In the form/table I want to be able to choose Destination
from a look-up list based upon the City chosen.
I tried achieving my goal in the Form first.
In the Data Source of Destination I tried using:
Select Destination
From Qry
Where Qry.City = City;
Then I tried straight from the table by Setting the
Destination field to be a Combo box. And setting the Row
Source as
Select Qry.Destination
From Qry
Where Qry.City = City;
But both approaches don't work. Because the value
of "City" isn't changing w/ each record. I was wondering
if anyone knows what I'm doing wrong?
-Meilu
I was wondering... is it possible to create a drop down
list based on a qry that requires a parameter?
Example:
I have 2 fields: City & Destination
I also have a qry that returns City w/ cooresponding
Destination.
In the form/table I want to be able to choose Destination
from a look-up list based upon the City chosen.
I tried achieving my goal in the Form first.
In the Data Source of Destination I tried using:
Select Destination
From Qry
Where Qry.City = City;
Then I tried straight from the table by Setting the
Destination field to be a Combo box. And setting the Row
Source as
Select Qry.Destination
From Qry
Where Qry.City = City;
But both approaches don't work. Because the value
of "City" isn't changing w/ each record. I was wondering
if anyone knows what I'm doing wrong?
-Meilu