G
George Applegate
I have a form that I want a combo box on. The combo box should allow
the user to select employees for a selected location, and only those
employees.
The location comes from a "prompt" in the query that says ['enter
location'].
Now this is the source for the combo box as I've written it, which
doesn't work:
SELECT Employee.EmployeeID, Employee.LastName, Employee.FirstName,
Employee.Department FROM Employee WHERE
(((Employee.Department)=(location entry form by select
location.department));
the WHERE is what I'm having trouble with. Do I need some single
quotes around 'location entry form by select location.department' or
should that not be the form name (location entry form by selection
location) but instead, the name of the query?
When the user opens the form, I am prompting for the location they are
working with. But the form is using a query, so maybe I should be
referencing the query?
Make a long story short, I want to prompt for a specific location
(which is "department"), but then in the employee combo box, I only
want to display employees tied to that location.
I hope this makes sense. I'm struggling with this and would like to
get it working.
Thanks for any suggestions, ideas or recommendations!
ga
George Applegate
(e-mail address removed)
the user to select employees for a selected location, and only those
employees.
The location comes from a "prompt" in the query that says ['enter
location'].
Now this is the source for the combo box as I've written it, which
doesn't work:
SELECT Employee.EmployeeID, Employee.LastName, Employee.FirstName,
Employee.Department FROM Employee WHERE
(((Employee.Department)=(location entry form by select
location.department));
the WHERE is what I'm having trouble with. Do I need some single
quotes around 'location entry form by select location.department' or
should that not be the form name (location entry form by selection
location) but instead, the name of the query?
When the user opens the form, I am prompting for the location they are
working with. But the form is using a query, so maybe I should be
referencing the query?
Make a long story short, I want to prompt for a specific location
(which is "department"), but then in the employee combo box, I only
want to display employees tied to that location.
I hope this makes sense. I'm struggling with this and would like to
get it working.
Thanks for any suggestions, ideas or recommendations!
ga
George Applegate
(e-mail address removed)