parameter query inout from text box in form

G

Guest

i want to use a parameter query to look up a clients details, however i want
to use the criteria for the pamameter query from a text box in a form. I
waould type in the surname of the client and hit go. I want this instead of
having the input box appear for the criteria... ANY HELP PLEASE!!!
 
A

Allen Browne

In the Criteria row of your query, name the parameter the same as you would
reference a form, e.g.:
[Forms].[Form1].[Text0]

It is also a good idea to declare your parameters by selecting Parameters on
the Query menu. In the dialog you enter the full name, and the type of data,
e.g.:
[Forms].[Form1].[Text0] Date/Time
This helps Access interpret the type of data correctly.
 

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