Reference a text box in a parameter query

G

Guest

How do I set up a form where a value entered into a textbox is the criteria
needed for my parameter query and I click on a command button to run it.
Also, is it possible to run the query to display in a list or text box with
the form open?

I know this is somewhat nonspecific but if I could have an example, that
would be great, thanks.
 
S

Shaun Beane

easy way with no code ...

open the query in design view and put the following criteria in the
appropriate field:
forms!yourformnamehere!yourtextboxnamehere

then use the command button wizard on your form to add a button that runs
the query.

if you need more explanation just ask.

Shaun Beane
 
G

Guest

Thanks it works great but is there some way to have the results show in a
listbox in my form instead of having a separate datasheet. thanks for your
assistance
 

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