Queries Access 2003 use a Drop down box for selection of querycrit

F

Fdspokane

I have an application which uses a master viewing form with a couple drop
down combo boxes for the Dataentry people to select variables - like Type of
item or Category.
Accompanying this I have an Item and a Category table which contains the
lookup information.
I would like to create a query which uses these tables in a Drop Down
selection style so the peron doing the query can select this information -
rather than having to type it in.
How would I get this to work in my query ?
 
M

Marshall Barton

Fdspokane said:
I have an application which uses a master viewing form with a couple drop
down combo boxes for the Dataentry people to select variables - like Type of
item or Category.
Accompanying this I have an Item and a Category table which contains the
lookup information.
I would like to create a query which uses these tables in a Drop Down
selection style so the peron doing the query can select this information -
rather than having to type it in.
How would I get this to work in my query ?


You can use a criteria like:

=Forms!masterform.comboItem OR Forms!masterform.comboItem Is
Null
 
F

FrankSpokane

Would I add that in the SQL view of my query and where - At the beginning or
where ?
 
M

Marshall Barton

It should be used in the Criteria row of the item field in
the query design grid. A similar criteria can be used for
the category field.

Make sure that you change it to use the real form and combo
box names.
 

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