599CD.com New Access Seminar Recorded   Collapse Menus
 
 
NEW Courses - Access Imaging, Excel 2007 Level 5 dismiss
 
   
 

What's New?  |  Courses  |  Theater  |  Demo  |  Tips  |  Blog  |  Forums  |  Search  |  Help  |  Order

 
What do you want to learn today? 
 
New Tips Added Weekly. Get Notified of New Tips & Tricks.
 
     
 
Tips & Tricks
   

  Access   Excel   Word   Windows   FrontPage   Hardware   Misc

 
 

Microsoft Access Parameter Query

Asking the user for criteria when you run your queries

Q: I would like my users to be able to change the criteria for a query, but not have to learn how to make design changes. For example, when I run a query of customers by state, I want the user just to be able to type in the state when the query runs - perhaps with a prompt. Any ideas?

A: To do this, use an Parameter Query. To do this, just place a criteria for the field(s) you want to have parameters for, and put a prompt for your user inside of square brackets. Like this:

Now when your query runs, you'll be prompted to enter the state as a parameter.

 

Here is a FREE VIDEO TUTORIAL that will walk you through this topic in detail.

I teach the concepts in this free mini tutorial in my Access 102 course. These are full courses - over 60 minutes in length each. I spend a lot more time going over how to do this, in addition to lots more tips and tricks.

 

Huge Discounts Available
When you purchase multiple classes together
Huge savings up to 50% off! Order Now.
 

Student Interaction: Creating a Parameter Query

Richard on 4/1/2008:  I hope you enjoyed this free tutorial. Please post any questions or comments you have here.
Gregg on 9/29/2009: How do you get an Access 2007 parameter query to prompt the user "Record Not Found" when an input value is not on the dataset?
Richard Rost on 9/29/2009: Gregg, you can't do this with just a parameter query. You would need something a little more advanced, like a DCOUNT statement in some VBA code to count the number of records returned.
Mark on 12/20/2009: How can i Query the Hours Worked Table and cal the Total Number of Hours and Total Payment made by customer.
Richard Rost on 12/21/2009: Mark, to get the total number of hours you would use a second query - make it an Aggregate Query and use the SUM function. The same would go for totaling payments.
 
 

You may want to read these articles from the 599CD Blog:

 

 

Need Help
 
Do you have questions about Word, Excel, Access, Web Design, or computers in general? Just ask us anything you'd like. Click here for assistance.
 

Get Free Tips & Tricks
 

Join our mailing list today and get information on our Free Tips & Tricks Newsletter including free video tutorials, eBooks, live seminars, and more.

Email:
Name:
Type in the word to the left:
 
Your email will be kept 100% safe and will never be given to 3rd parties.
 


CLICK HERE for a FREE lesson



Order your first 599CD course now.
Your Satisfaction is Guaranteed!


Subscribe to our RSS FeedWhat's This?

599CD on Facebook  599CD on Twitter  Subscribe to RSS Feed  Add to Live Bookmarks  Add to My AOL  Add to MyYahoo  Add to Google Reader or Homepage    hide help

599CD Home   |   Learn More   |   What's New?   |   Contact Us   |   Free Demo   |   FAQs   |   Order Now   |   Affiliate Program   |   TechHelp   |   MYOLP   |   Jobs   |   Downloads   |   Handbooks  (Text)   |    Mailing List   |   Lost Passwords   |   Referral Program   |   Online Poll   |   Corporate, Educational, Government, Non-Profit Sales   |   Message Forums   |   Testimonials   |   Privacy Policy   |   Free Gift CDs   |   Tips & Tricks