ACC2000: Parameter Query on Yes/No Field That Accepts Yes, No, and *ID: Q198626
|
This article describes how to create a parameter query that uses a Yes/No data type field that accepts the values of Yes, No, and * (asterisk), where * returns all values in the field.
To create a parameter query that displays all records that contain Yes, No, or all values, follow these steps:
Field: MyParam: IIf([Discontinued]=-1, "Yes","No")
Show: True
Criteria: Like [Enter Yes, No or *]
For more information about Yes/No fields, please see the following articles in the Microsoft Knowledge Base:
Q209505 ACC2000: Expressions to Count Yes, No, and Other Responses
Q209700 ACC2000: Cannot Use "y," "n," "t," or "f" in Yes/No Field
Q209823 ACC2000: How to Use the LIKE Operator in Parameter Queries
Additional query words: inf
Keywords : kbdta QryParm QryHowto QryCrit TblDatyp
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: May 13, 1999