Criteria for a query

K

Karen

I have a form that allows you to select an emp # and then
select a command button that runs a query.

I am creating the query but I don't know how to get the
information from the form and run the query based on the
certain emp # selected from the form?

I think I have to put some sort of code in the criteria
section?

Thanks for any help..
 
M

Michael Hopwood

If your form is called "frmEmployees" and your control is called "txtID"
(because it's a text-box) then put this in the criteria of your query:

[Forms]![frmEmployee]![txtID]
 

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