Anda di halaman 1dari 7

Query criteria 2: Using date criteria in queries

In the message bar, click Enable Editing,


then press F5 or click Slide Show > From Beginning to
start the course.
If the videos in this course dont play, you may
need to download QuickTime or just
switch to PowerPoint 2013.

Query criteria 2: Using date criteria in queries

Closed captions

Course
summary

and
When
So
To
Now,
IAn
or
Just
For
And
You
If
can
you
the
filter
in
expression
example,
can
can't
remember
we'll
Iremember,
while
also
this
the
know
don't
want
need
you
less-than
for
also
example
look
use
course,
use
I'm
use
date
I've
more
to
use
use
Ithem
this
repeating
the
at
include
filter
is
can
criteria
to
said
pound
you
sign
values,
a
how
some
the
flexibility,
I'll
criteria
put
greater-than
combination
you
use
to
for
need
it
show
AND
to
to
your
find
data
to
before,
signs,
just
part
the
basic
find
you
myself,
do
filter
finds
operator.
to
you
part
operators
NOT
saw
from
that
of
you
all
surround
enter
expressions.
you
but
a
your
how
all
dates
sign
of
of
filtered
operator
in
can
remember
date,
the
won't
a
records
remember
functions,
the
to
query
date,
to
use
dates
before
outside
just
them
use
next
entire
find
for
get
the
to
like
results,
after
date
years
listed,
a
dates
that
video.
a
find
with
April
Or
logical
single
value
to
the
result.
this.
the
criteria
operator,
surround
pound
everything
or
pound
pound
after
use
4th.
date
months,
in
second
date.
operators,
the
BETWEEN
April
signs
criteria
in
signs,
signs.
your
like
field.
queries,
and
but
4th,
for
return
this.
like
date
can
constants,
If
example,
before
assets
and
like
you
this.
starting
be
entire
values
so,
AND.
enter
kind
the
purchased
you
and
date
fourteenth.
with
of
part
can
tricky.
fields.
values.
the
pound
ofon
create
one,
Aprila
basics.
like
4th
signs.
calculated
of
this,
2013.
you
field,
won't get a result.
Press F5 to start, Esc to
stop

2:30

The basics

3
3:17

Calculated
fields

Summary

Feedback

1/3
videos

4:18

DateDiff,
DateAdd

Help

Help

Query criteria 2: Using date criteria in queries

Closed captions

Course
summary

Butthe
So,
Calculated
Instead,
Click
In
You
I'll
and
That's
Also,
When
Capitalization
As
For
And
The
So
Add
because
Now
Finally,
so
Next,
also
the
a
another
back
after
example,
this
when
if
do
expressions
function
you
how
a
don't
first
enter
the
you
we'll
Icomma
you
parentheses,
Criteria
normal,
course
only
that
hide
you
I'll
DatePart,
to
they
can
that's
to
top
example,
need
you
try
use
use
2
see
Design
fields
example,
add
because
can
use
the
in
see
uses
also
row
this
to
display
need
summary
doesn't
after
row,
a
and
the
how
the
to
do
or
part
memorize
Acquired
field
we
the
don't
of
requires
expression
remember
any
Iview,
subtract
DatePart
field
Criteria
a
I'll
ifenter
to
the
to
add
a
saw
the
of
criteria
lot
you
say
the
name
blank
filter
enter
matter,
calculate
of
exist
the
quotes,
where
has
more
a
and
YEAR
in
ten
results
your
want
q
Date
pair
athese
row,
the
date
for
on
dates
in
field,
2013,
in
function,
links
date,
filters
notice
a
interval
returns
because
with
but
an
boss
function
of
your
part
the
assets
key
to,
previous
field,
and
because
intervals
value
of
now.
brackets,
expression,
to
enter
with
either
spelling
you
and
date
for
expressions
piece
calculation
of
this:
needs
data.
then
more
that
data
settings,
because
purchased
aThe
assets
Iin
can
the
notice
returns
equals,
want
values
date
video
Access
aof
my
you
Acquired
makes
between
information.
for
to
specific
does.
course
DateAdd
rename
and
syntax.
expressions,
know
value,
purchased
to
want
and
all
that
only
from
it
that
are,
a
YEARthat's
than
then
filter
gave
dates
the
lets
in
number,
the
summary
IDate
date,
dates
results
what
the
work
a
you
and
don't
you
years
function.
data
what
Acquired
me
given
by
the
name
except
field,
define
don't
can
quarter,
in
or
was
filter
on
with
use
field
easier
Idown
so
you've
for
2013.
get
a
year.
whole
has
use
another
the
Ipurchased
list
quotes
forget
the
on
March
Date,
can
a
in
no
to
links
spaces,
name
to
a
of
functionand
and
a
time
seen
second
DateDiff
result.
calculated
date
just
seconds,
new
read,
dates
the
22nd
or
way
to
make
intervalsmonths,
and
use
here,
values.
pound
field
field
this
during
brackets.
put
quarter,
in
to
of
function,
the
removed
sure
aand
information.
it
make
in
with
2013.
field.
field.
in
signs
number
your
the
ayou
here
brackets,
set
my
and
your
second
the
use
of
they
date
run
query.
parentheses.
values.
around
here.
equal
data
like
quarter
and
are.
quotes
the
query.
this.
so
easier
sign.
on.
around
the
of 2013.
value.
to understand.
this setting.
Press F5 to start, Esc to
stop

2:30

The basics

3
3:17

Calculated
fields

Summary

Feedback

2/3
videos

4:18

DateDiff,
DateAdd

Help

Help

Query criteria 2: Using date criteria in queries

Closed captions

Course
summary

Now,
Let's
DateDiff
Here's
IGo
For
Now
Because
DateAdd
So
To
Start
That
It
Follow
the
The
and
You
Run
Change
want
saves
show
as
if
in
to
my
year
use
start
follow
can
function
second
sort
I'll
the
let's
Igives
way,
look
with
this
that's
an
Design
run
specify
to
that
afilter
starting
the
see
also
Date
me
query,
you
list
calculates
the
interval,
Iexample,
works
with
know
say
stop
example,
at
my
only
the
Ithat
me
with
don't
just
date
some
DateAdd
interval
of
that
for
how
results
use
requires
View,
function
you
the
query
an
Between
and
a
the
want
with
how
and
a
and
records
one
the
date
not
specific
function
interval,
forget
to
this
lot
year
negative
need
typing.
interval
here's
go
the
expand
I'm
Ithere
many
in
use
a
ending
AND
as
number
example
to
like
get
all
function
automatically,
works,
an
date,
back
provides
Descending
interval,
it
see
filtering
number
operator,
to
from
of
the
the
DateDiff,
earlier
interval
is
dates,
operator,
you
ais
but
days
know
the
settings,
four,
late
now,
query
to
a
dates,
and
brackets.
DateDiff
there
to
I'll
the
blank
of
go.
when
then
the
orders
a
that
an
for
then
orders,
of
use
dates,
like
this
how
which
and
Ipast
setting,
positive
then
that
get
because
unfiltered
but
time
I'll
order
order.
three
then
you
field,
the
this,
you
and
somethingtoday's
is
so
then
3,
to
and
enter
are
a
four
it
returns
the
orders
records
I'm
Iintervals,
specify
use
lot
Criteria
uses
DateAdd,
need
don't
enter
was
but
years'
enter
late.
followed
DateAdd
number,
the
Date
date
years.
of
DateAdd
adding
brackets,
the
data
make
late,
slightly
negative
were
Date
to
Some
order
try
have
a
from
aaworth
you'll
DateAdd
row
function.
greater-than
add
field
number,
such
for
to
parentheses,
so
by
3
functions
and
sure
late,
function
to
the
instead
has
datawhen
memorize
years'
are
adate
with
Idifferent
a
add
name,
of
enter
enter
moment.
as
values,
Istart
past
you
and
get
early,
to
data,
date.
function,
days
a
your
and
values
add
worth
comma
again.
of
surround
later
d,
in
one
date
by
a
four
sign
starting
syntax.
this
colon,
and
a
query
or
them
values
your
how
calculated
an
each
the
together.
years.
of
values.
months,
and
and
so
is
those
some
between
order
values.
many
values
day
now.
the
DateDiff,
see
criteria,
them
an
to.
time
zero
with
number
are
interval,
numbers
ending
the
was
The
between
days.
field,
Iin
October
with
torun
on
them,
Course
and
the
something,
placed,
course
and
time.
quotes.
date.
this
of
Criteria
with
we'll
point
then
two
16th
start
Date/Time
summary
when
parentheses.
the
to
row,
intervals
of
query.
Summary
2015.
orders
quotes,
field
with
it was
names.
you
that
has
DateDiff.
for
values.
and
due,
want
links
a
shipped
link
aand
comma
to
totomore
add.
when
on
them.
time.
after.
information.
it was shipped.
Press F5 to start, Esc to
stop

2:30

The basics

3
3:17

Calculated
fields

Summary

Feedback

3/3
videos

4:18

DateDiff,
DateAdd

Help

Help

Help
Course
summaryQuery criteria 2: Using date criteria in queries

The basics

DatePart, DateDiff, &


DateAdd interval
yyyy Year
settings

Surround your date values with pound signs


(#). For example, #4/1/1997#. Also, keep
logical operators outside pound signs.

#4/1/1997# Or #5/4/1997#

>=#5/4/1997# Or <=#6/12/1998#

q
m
y
d
w
ww
h
n
s

Filter for a given year


=Year([Acquired Date]), then put the year you
want to filter for in the Criteria row.

Filter for an interval


(year, quarter, etc.)
=DatePart("q",[acquired date]). In this
example, put the numbers 1-4 (the quarter
you want to filter for) in the Criteria row.

=DateDiff("d",[RequiredDate],[ShippedDate]).
Finds the days between a required date and a
shipped date.

Add dates
=DateAdd("m",6,"4/1/1997") Finds 6 months
of data, starting with the date provided.

2:30

The basics

3
3:17

Calculated
fields

Quarter
Month
Day of year
Day
Weekday
Week
Hour
Minute
Seconds

See also

Subtract dates

Press F5 to start, Esc to


stop

Using dates as criteria in Access querie


s
Build an expression
Choose the right date function
DatePart, DateDiff, & DateAdd
More training courses
Office Compatibility Pack

Summary

Feedback

Help

4:18

DateDiff,
DateAdd

Course summary

Help and comments


Rating

Course summary

Thank you for viewing this course!


How did we do? Please tell us what you think
Check out more cour
ses

Press F5 to start, Esc to


stop

2:30

The basics

3
3:17

Calculated
fields

Summary

Feedback

Help

4:18

DateDiff,
DateAdd

Help

Course summary

Using PowerPoints video controls


Point at the bottom edge of any video to start, stop, pause, or rewind. You drag to
rewind.

Stopping a course
If youre viewing online, click your browsers Back button. If youre viewing offline,
press Esc. If youre watching a video, press Esc once to stop the video, again to stop
the course.

Going places

You can go to any part of a course by clicking the thumbnails (light or shaded)
below the video. You can also click the forward and back arrows, or press Page Up
or Page Down.

If you download a course and the videos dont play

Click Enable Editing


if you see that button. If that doesnt work, you may have
PowerPoint 2007 or earlier. If you do, you need to get the PowerPoint Viewer . If you have
PowerPoint 2010, you need the QuickTime player, or you can upgrade to PowerPoint 2013 .

Press F5 to start, Esc to


stop

2:30

The basics

3
3:17

Calculated
fields

Summary

Feedback

Help

4:18

DateDiff,
DateAdd

Anda mungkin juga menyukai