How to create an input field in query

G

Guest

If I had a query that pulled from several tables and one of the fields pulled
was State. How can I get the query to ask me what state I want..so I can type
in NY or MN or CA and have it just give me those?

Thanks
 
G

Guest

One simple way is to do so in the design grid of the query. You could simply
type the following into the first 'Criteria' row under the State field:

[Enter the State you want]

Or, whatever you want it to ask for. When the query is triggered, a box
will appear, asking the user for the input. Be sure to include the brackets
as shown above.

In the Access Help files you can look for 'Parameter Query' to find more
information.
 
J

John W. Vinson

If I had a query that pulled from several tables and one of the fields pulled
was State. How can I get the query to ask me what state I want..so I can type
in NY or MN or CA and have it just give me those?

Thanks

On the Criteria line underneath the state field in the query grid type

[Enter State:]


John W. Vinson [MVP]
 

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