To create
a filter for a date, time, or timestamp category in a relational data
source, complete these steps:
-
At the
top of the
Section Data pane, click
OptionsSection Filters. This opens the
Section Filters dialog box. Click
New to open the
Create Custom Filter dialog box.
-
In the
Filter name field, accept the default name or provide
a different name. For example, if you want to filter the query to
return data before a specified time, type a name such as
Data Entered Before 5:00pm
. The filter name appears
in the
Apply custom filters box in the
Edit Filters dialog box.
-
From the
Data item drop-down list, select the date, time, or
timestamp data item that you want to filter.
-
From the
Operator drop-down list, specify how you want to filter
the values from the data source. For example, you might want users
to see query results that are before or equal to the filter values.
-
Operators, Category Types, and Required Information
|
|
|
Equal to, Not equal to, After, After or equal to, Before, and Before or equal to
|
|
Use the Date field to type a date or click to use the date picker. Note that the list of valid
formats depends on your locale and language.
|
|
Use the Time drop-down lists to select an hour, a minute, and a second in 24-hour
time. For example, to specify 5 p.m., select 17, 00, and 00.
|
|
Use the Date field to type a date or click to use the date picker.
Use the Time drop-down lists to select an hour, a minute, and a second in 24-hour
clock time.
|
Between values and Not between values
|
|
Use the Minimum and Maximum drop-down lists to specify
the minimum and maximum dates. Use the Date fields to type a minimum and maximum date or click to use the date picker. Note that the list of valid
formats depends on your locale and language.
|
|
Use the Minimum and Maximum drop-down lists to select a
minimum and maximum hour, minute, and second in 24-hour clock time.
|
|
Use the Minimum and Maximum drop-down lists to specify
the minimum and maximum dates and times. Use the Date fields to type a date or click to use the date picker. Note that the list of valid
formats depends on your locale and language.
Use the Time drop-down lists to select the hours, minutes, and seconds in 24-hour
clock time.
|
-
-
When you
access the
Create Custom Filter dialog box
from the
Section Filter dialog box, then
the filter that you just created is automatically selected in the
Apply custom filters box. When the filter name is selected,
the filter expression is shown in the
Expression box.
Tip
Custom filters
can be saved for future use. To turn off the filter, clear the check
box next to the filter name.
For more information, see Apply Existing Section Filters.
To save
the new filter and exit the
Section Filters dialog box, click
OK.
Note: If you click
Cancel, your new filter is discarded.
-
(Optional)
New filters are automatically added to the existing filter combination
expression. By default, new filters are joined using the AND operator,
which means that the query results must match all selected filters.
For more information,
see Combine Filters.
Section Filters Dialog Box Showing a New, Selected Custom Date
Filter and Its Expression