ACC: Query with Parameters to Evaluate Complex CriteriaLast reviewed: April 2, 1997Article ID: Q103252 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. Microsoft Access allows the use of variable parameters in queries. This article discusses how to construct a query requiring more than one prompt. Each parameter can be used both as criteria and as a field to allow complicated evaluation of the value entered in each parameter.
MORE INFORMATIONThe following parameter query is based on the Orders table in the sample database Northwind.mdb (or NWIND.MDB in earlier versions). It selects orders written between two variable dates provided by the user. If either the Start Date or the End Date is not entered, the query returns all dates greater than or equal to the Start Date, or less than or equal to the End Date. If neither a Start Date nor an End Date is entered, the query returns all orders.
REFERENCESFor more information about these kinds of queries, search the Help Index for "Query by Form," or "Parameter Queries," or ask the Microsoft Access 97 Office Assistant.
|
Additional query words: queries ui parameter query
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |