Filtering Data by Form


graphics/05inf20.jpg

graphics/one_icon.jpg

After you open the form that you want to use to filter data, click the Filter By Form button on the Standard toolbar in the main Access window.

graphics/two_icon.jpg

A blank record containing all the fields in the form appears. Click in the field that you want to filter by.

graphics/three_icon.jpg

Type the entry you want to match, or type a filter expression. For example, to find all products over $100, type >100 in the Price field.

graphics/four_icon.jpg

Click the Apply Filter button on the Standard toolbar in the main Access window.

INTRODUCTION

If you don't want to simply search for an entry, you can use your form to create a filter. This method enables you to enter criteria in a blank form to select a range of records that match that criteria. For example, suppose that you want to display all products that cost $100; you can type 100 in the blank Price field to locate all records that meet that criterion. If, on the other hand, you want to find all products that cost more than $100, you could do so by creating a filter expression. Filter expressions use mathematical operators such as less than (<), greater than (>), equal to (=), and so on to select a range of records.

graphics/05inf21.jpg

graphics/five_icon.jpg

Access displays all the records that match the criteria you entered. To again view all records in the table, click the Remove Filter button on the Standard toolbar in the main Access window.

graphics/six_icon.jpg

All records are again displayed.

TIP

Toggling the Apply/Remove Filter Button

The Apply/Remove Filter button is a toggle . That is, when the data is not filtered, the Apply Filter button is present. When the data is filtered, the button changes to the Remove Filter button.

TIP

Creating Complex Filter Expressions

You can create complex filter expressions using other types of operators. For even more instruction, consult Access's online help.

TIP

Using the Drop-Down List

If you prefer, you can click the down arrow next to the selected field and choose an entry instead of typing the entry in step 3. This is the same as creating a Filter By Selection.



Easy Microsoft Office Access 2003
Easy Microsoft Office Access 2003
ISBN: 789729598
EAN: N/A
Year: 2003
Pages: 174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net