A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Create Form, using query with two parameters



 
 
Thread Tools Display Modes
  #1  
Old April 24th, 2008, 10:32 PM posted to microsoft.public.access.forms
Juan
external usenet poster
 
Posts: 77
Default Create Form, using query with two parameters

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.
  #2  
Old April 24th, 2008, 10:55 PM posted to microsoft.public.access.forms
Steve Schapel
external usenet poster
 
Posts: 1,422
Default Create Form, using query with two parameters

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

Juan wrote:
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.

  #3  
Old April 24th, 2008, 10:59 PM posted to microsoft.public.access.forms
Steve Schapel
external usenet poster
 
Posts: 1,422
Default Create Form, using query with two parameters

.... or in fact a combobox may be more applicable than a textbox.

--
Steve Schapel, Microsoft Access MVP

Steve Schapel wrote:
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]

  #4  
Old April 24th, 2008, 11:04 PM posted to microsoft.public.access.forms
Derek[_6_]
external usenet poster
 
Posts: 6
Default Create Form, using query with two parameters

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" wrote in message
...
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

Juan wrote:
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.


  #5  
Old April 24th, 2008, 11:37 PM posted to microsoft.public.access.forms
Juan
external usenet poster
 
Posts: 77
Default Create Form, using query with two parameters

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" wrote:

.... or in fact a combobox may be more applicable than a textbox.

--
Steve Schapel, Microsoft Access MVP

Steve Schapel wrote:
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]


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.