Selecting from a list

G

Guest

Hi,
I have a table with several fields and on of the field has a combo box.
I want to write a query such that the end user can select from one of the
value on the combo list.

I tried this
select * from table where field1 =[Enter Value];
This works, but the values in the field are too long for the end user to
memorize.

I want something like this:
select * from table where field1=(Select distinct field1); (shows the list
of options)
This syntax doesnot work, can someone suggest a solution.

Thanks
 
G

Guest

What are you trying to achieve?

Create a form with an unbound combo box and call it something relevant. In
the criteria row of the query create a filter that references your combo
option. Then you can create a button that opens the query, runs a report ...
or whatever you want to do.
 
Joined
Jun 23, 2007
Messages
61
Reaction score
0
I suggest making a form and linking your query to the combo box you place there. You can prompt the query whenever you want using the combo properties options (on click might be good). Thus, you can have the user look up in the combo box the value they want so they don't have to memorize.

If you want to use a QUERY for selecting certain records by way of user input, you're going to have to have a parameter prompt.
 

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