Re: Show only certain records in a query by date and time
- From: "Linda RQ" <RomulanQueen@xxxxxxxxxxxxxxx>
- Date: Tue, 24 Oct 2006 21:45:35 -0400
Thanks Damian! I had thought about those 2 at one time but for some reason
couldn't figure out that it would work...but seems to work like I need it
to.
Linda
"Damian S" <DamianS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5FC01027-DFC2-411D-A3F3-61F9475F7476@xxxxxxxxxxxxxxxx
Hi Linda,
No need to use dateadd()
You could just use is null or >= Date()
However, for your time problem, you should probably use Now() which
includes
date and time. ie: is null or >= Now()
Hope that gets you moving in the right direction.
Damian.
"Linda RQ" wrote:
Access 2003. I'm sorry to be asking so many questions today but I hope
they
help someone else too and I have been working on only access since 7 this
morning. I have been spending a lot of time learning how to find my own
answers using Jeff Conrad's favorite sites, and the help file in access
and
I only ask if I have spent more than an hour hunting. I still don't
quite
know how to ask some questions yet I guess.
I have a query with a dtt field that has therapy end dates, I have both
date
and time in the field. I want my query to show records that do not have
an
expiration date in the field and also records that have expiration dates
that haven't occurred yet. I have end dates of
10/20/06,10/21/06,10/22/06,10/23/06,10/24/06, 10/25/06. It sort of works
because the dates 10/20, 10/21,10/22 and 10/23 do not show up but the
10/24
record still shows and it should have expired at 2:14 pm on 10/24 (today)
and since it's 7:35 pm now I was thinking it shouldn't be showing up.
This
leads me to believe that I need to put in something for the time factor
in
my expression but I can't seem to find anything so far to include the
days,
minutes and hours.
The other issue is that I completely am using the wrong expression but I
was
pretty excited that it worked almost as expected.
Is Null Or >=DateAdd("d",0,Date())
Thanks,
Linda
.
- References:
- Show only certain records in a query by date and time
- From: Linda RQ
- Show only certain records in a query by date and time
- Prev by Date: Re: Show only certain records in a query by date and time
- Next by Date: Re: Show only certain records in a query by date and time
- Previous by thread: Re: Show only certain records in a query by date and time
- Next by thread: Re: Tables
- Index(es):
Relevant Pages
|