Sorting and Filtering Boolean Fields |
|
Introduction |
A Boolean field is one that holds a true or false result and it is created as a Yes/No type. By default, and most of the time, a Boolean field displays a check box that can be checked (or marked) or cleared (or unchecked). By its Boolean interpretation, Microsoft Access considers that a check box that is checked is "selected" and a check box that is not checked in "cleared". You can use this logic to sort the records of a table, a query, or a form. You can sort the Boolean records as selected or cleared. As it should seem obvious, when you sort in selected order, the checked boxes would come up first. To sort the Yes/No records of a table, a query, or a form, in selected order, you can: |
To sort the Boolean records in cleared order:
To put the list back in the sequence it previously had, in the Sort & Filter section of the Ribbon, click the Clear All Sorts button .
If you have a column created as a Yes/No type, you can isolate the list with only checked or only cleared fields. To filter records that are checked:
After clicking, the table, query, or form would display only the records that have that field checked. To filter records by the cleared check boxes:
After clicking, the table, query, or form would display only the records that have that field cleared. |
|
||
Home | Copyright © 2008-2016, FunctionX, Inc. | |
|