List Box Criteria

A

Ant

I have an unbound list box with the multi Select properties set to ‘Extended’.
One of the fields in the list box is a unique Number field [Group_ID]. I
would like to create a query that is based on the lines selected in the list
box. E.g. If Group ID 2, 5 & 6 are selected then the query will show 2, 5 &
6. Can any one help with the syntax of what I need to enter on the criteria
line of the query?



Thanks
 
T

Tom Ellison

Nepotism?

Tom Ellison


Ant said:
Very Useful

Cheers
Tony Snell



Ken Snell (MVP) said:
I have a sample database that shows how you can create SQL queries for use
in reports by using the values in various controls on a form. You can
look
at that to see how to create SQL queries.

Take a look at the database and then post back with questions:
http://www.cadellsoftware.org/SampleDBs.htm#FilterForm

--

Ken Snell
<MS ACCESS MVP>

Ant said:
I have an unbound list box with the multi Select properties set to
'Extended'. One of the fields in the list box is a unique Number field
[Group_ID]. I would like to create a query that is based on the lines
selected in the list box. E.g. If Group ID 2, 5 & 6 are selected then
the query will show 2, 5 & 6. Can any one help with the syntax of what I
need to enter on the criteria line of the query?



Thanks
 
A

Ant

Very Useful

Cheers
Tony Snell



Ken Snell (MVP) said:
I have a sample database that shows how you can create SQL queries for use
in reports by using the values in various controls on a form. You can look
at that to see how to create SQL queries.

Take a look at the database and then post back with questions:
http://www.cadellsoftware.org/SampleDBs.htm#FilterForm

--

Ken Snell
<MS ACCESS MVP>

Ant said:
I have an unbound list box with the multi Select properties set to
'Extended'. One of the fields in the list box is a unique Number field
[Group_ID]. I would like to create a query that is based on the lines
selected in the list box. E.g. If Group ID 2, 5 & 6 are selected then the
query will show 2, 5 & 6. Can any one help with the syntax of what I need
to enter on the criteria line of the query?



Thanks
 
K

Ken Snell \(MVP\)

Nope! < grin >

--

Ken Snell
<MS ACCESS MVP>

Tom Ellison said:
Nepotism?

Tom Ellison


Ant said:
Very Useful

Cheers
Tony Snell



Ken Snell (MVP) said:
I have a sample database that shows how you can create SQL queries for
use
in reports by using the values in various controls on a form. You can
look
at that to see how to create SQL queries.

Take a look at the database and then post back with questions:
http://www.cadellsoftware.org/SampleDBs.htm#FilterForm

--

Ken Snell
<MS ACCESS MVP>

I have an unbound list box with the multi Select properties set to
'Extended'. One of the fields in the list box is a unique Number field
[Group_ID]. I would like to create a query that is based on the lines
selected in the list box. E.g. If Group ID 2, 5 & 6 are selected then
the query will show 2, 5 & 6. Can any one help with the syntax of what
I need to enter on the criteria line of the query?



Thanks
 

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