If you can't explain it simply,
you don't understand it well enough.
-Albert Einstein
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 

News      User Comments     History     Notify Me

4/1/2008
Creating a Parameter Query
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

 
I hope you enjoyed this free tutorial. Please post any questions or comments you have here.

Permanent Link
Course Link: Creating a Parameter Query
Keywords: parameter query
Post Reply

Creating a Parameter Query Comment from Brauna R @ 11/24/2014
Hi Richard,
I use a parameter query to open a report using a date prompt.  Is there any way to show the date picker with the prompt?
Thanks




Reply from Alex Hedley:

If you ware wanting to use a DatePicker you will need to create a Form that handles the Input for your Query and passing that value to the Query.

Have you seen this TIP?
Show Just This Thread        Post Reply
Creating a Parameter Query Comment from monto @ 5/7/2013
When you create a report How are use Dcount function with parameter query
Show Just This Thread        Post Reply
Use Parameter to Set Value Comment from John Mason @ 3/6/2012
I am using a parameter query to open a form, using the SSN field, and that works wonderfull, however if the SSN is not in table, it opens a blank form, which is fine, but I would like it to populate the SSN field (1st tab) when it opens the blank. Is there a way to do this?


Reply from Richard Rost:

Of course there's a way to do it. There's a way to do just about everything in Access. Unfortunately, I can't think of a way to do this that DOESN'T involve a little programming. Once you type that parameter into Access' default prompt, there's not a lot else you can do with it.

You could set up your own form that's not bound to a table. All you need in that form is a single text box and a command button. Type the SSN into the text box and click the button to search. The button would execute a DLOOKUP command to see if the value exists in your table. If it does, you would open the person form to that record. If not, you would open the form to a blank record and set the value.

Like I said, this will involve a little bit of programming. I cover all of this in my 300-level Access classes. Unfortunately, I can't think of a NON-programming solution for this problem. Anyone else?
Show Just This Thread        Post Reply
Creating a Parameter Query Comment from Ken @ 9/1/2011
The only thing wrong with the parameter query,is that you can't use it when you are using a lookup list on your fields.
Show Just This Thread        Post Reply
Access Query Comment from Bobbin @ 9/7/2010
Consider there is a Table with Admit date and and discharge date fields both are same format as follows(10/01/2008). How it is possible If I need to select the customers for last 3 months with admit date/discharge date, How its possible to create query for summary with month if the dates are given in above format
Show Just This Thread        Post Reply
query and calculation Comment from Richard Rost @ 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.
Show Just This Thread        Post Reply
query and calculation Comment from Mark @ 12/20/2009
How can i Query the Hours Worked Table and cal the Total Number of Hours and Total Payment made by  customer.
Show Just This Thread        Post Reply
MS ACCESS PARAMETER QUERY Comment from Richard Rost @ 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.
Show Just This Thread        Post Reply
MS ACCESS PARAMETER QUERY Comment from Gregg @ 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?
Show Just This Thread        Post Reply

Add Your Comments or Subscribe
 
If you just want to subscribe to get email updates when the News is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
 
  Your Name:  Required
  Your Email:  NOT Public
  Subject:
  Comments:

 

Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 9+7:
  
  Notify me when the News is updated.
  Remember Me for my next comments
  
 
 
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard

 

 
 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP