Create Form, using query with two parameters

J

Juan

Hello,
I created a query with two parameters. Example,
Like [Enter Cust Name]
Like [Enter Part number]
which works fine, but users have to enter the cust name then click ok then
enter the part number and click ok to get the data. Is there a way to do a
form
which I can use these two fields at the same time and have a button that
when click, it will give me the output base on my criteria?
So thinking form should be like:
Enter Cust Name
Enter Part number
ok button, cancel button

Please advise if this is possible,
thanks for any info provided.
J.
 
S

Steve Schapel

Juan,

Yes, you can make a form with two unbound textboxes, where the user can
enter the Cust Name and Part Number criteria. And then, in your query,
in place of your existing parameter prompt, you would put the equivalent
of this:

[Forms]![NameOfYourForm]![NameOfTheTextbox]
 
D

Derek

Hi

a nice touch would be to use two combo boxes instead of text boxes that
select their data from the tables that hold the customer and part number
values. this way your user wont have to type anything.


Steve Schapel said:
Juan,

Yes, you can make a form with two unbound textboxes, where the user can
enter the Cust Name and Part Number criteria. And then, in your query, in
place of your existing parameter prompt, you would put the equivalent of
this:

[Forms]![NameOfYourForm]![NameOfTheTextbox]

--
Steve Schapel, Microsoft Access MVP
Hello,
I created a query with two parameters. Example,
Like [Enter Cust Name]
Like [Enter Part number]
which works fine, but users have to enter the cust name then click ok
then
enter the part number and click ok to get the data. Is there a way to do
a form
which I can use these two fields at the same time and have a button that
when click, it will give me the output base on my criteria?
So thinking form should be like:
Enter Cust Name
Enter Part number
ok button, cancel button

Please advise if this is possible,
thanks for any info provided.
J.
 
J

Juan

Hello Steve,
thanks so much for the info. I tried the textbox way and it seems to be
working fine. I really appreciate it big time.

Thanks again,
J

Steve Schapel said:
.... or in fact a combobox may be more applicable than a textbox.

--
Steve Schapel, Microsoft Access MVP

Steve said:
Juan,

Yes, you can make a form with two unbound textboxes, where the user can
enter the Cust Name and Part Number criteria. And then, in your query,
in place of your existing parameter prompt, you would put the equivalent
of this:

[Forms]![NameOfYourForm]![NameOfTheTextbox]
 

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

Similar Threads


Top