Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / April 2008

Tip: Looking for answers? Try searching our database.

Create Form, using query with two parameters

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Juan - 24 Apr 2008 22:32 GMT
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.
Steve Schapel - 24 Apr 2008 22:55 GMT
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]

Signature

Steve Schapel, Microsoft Access MVP

> Hello,
> I created a query with two parameters. Example,
[quoted text clipped - 13 lines]
> thanks for any info provided.
> J.
Steve Schapel - 24 Apr 2008 22:59 GMT
... or in fact a combobox may be more applicable than a textbox.

Signature

Steve Schapel, Microsoft Access MVP

> Juan,
>
[quoted text clipped - 4 lines]
>
> [Forms]![NameOfYourForm]![NameOfTheTextbox]
Juan - 24 Apr 2008 23:37 GMT
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

> .... or in fact a combobox may be more applicable than a textbox.
>
[quoted text clipped - 6 lines]
> >
> > [Forms]![NameOfYourForm]![NameOfTheTextbox]
Derek - 24 Apr 2008 23:04 GMT
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.

> Juan,
>
[quoted text clipped - 23 lines]
>> thanks for any info provided.
>> J.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.