combo box in a querie

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how do i get combo box up when using a parameter in a querie.ie a list on
names to choose from when running a querie
thanks
tom
 
Create the combo box on an unbound form and reference it as the parameter in
the query, e.g.

SELECT *
FROM Contacts
WHERE LastName = Forms!YourForm!YorComboBox;

Then open the query, or better a form or report based on the query with a
button on a form.

In the above example the RowSource for the combo box would be:

SELECT DISTINCT
LastName
FROM Contacts
ORDER BY LastName;

Ken Sheridan
Stafford, England
 
Back
Top