Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Access
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
Watch this: Make a query ask for input
 

January 31, 2008

Steven Thomas

Want to make your query ask for input when it runs? Watch these demos to see how you can add parameters to a query, handle input that is the wrong kind of data, and use a form to collect parameters and then use them with multiple queries.



You can add parameters to a query in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.). This first video demonstrates how to use parameters to make a query ask for a start date and an end date, and then use those values to limit the records returned.

Watch this Demo button

Assistance Problems watching the video? Try our troubleshooting tips.

To make your parameter query more robust, you can specify the data type that each parameter expects. This demo builds on the first example to show you how.

Watch this Demo button

Assistance Problems watching the video? Try our troubleshooting tips.

If you want to reuse input values with multiple queries, you can create a form to collect parameters, and then connect that form to the queries you want. This demo builds on the previous two examples.

 Note   This demo does not show you everything you might want to do with a parameter form. It shows you how to create a form, add controls to collect input, and use the input in your query design.

Watch this Demo button

Assistance Problems watching the video? Try our troubleshooting tips.
advertisement