combo box in a querie

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top