Date Query (1 Viewer)

f.bruc

New member
Local time
Today, 15:31
Joined
Nov 27, 2008
Messages
3
What expression do you need to enter for:
searching records with a date before the current date?
searching records with a date which is either the current or future date?

Thanks
 

namliam

The Mailman - AWF VIP
Local time
Today, 16:31
Joined
Aug 11, 2003
Messages
11,695
Date() returns the current date

Welcome to the forums
 

f.bruc

New member
Local time
Today, 15:31
Joined
Nov 27, 2008
Messages
3
i realise that that returns the current date however i was wanting to know how i use that to search for previous dates and dates which are the current and future? two seperate queries.

Thanks
 

namliam

The Mailman - AWF VIP
Local time
Today, 16:31
Joined
Aug 11, 2003
Messages
11,695
< Date() for history
>= Date() for today and future

?? That the answer you are looking for??
 

gwhizz

New member
Local time
Today, 15:31
Joined
Nov 27, 2008
Messages
3
You need 2 queries..

SELECT Table1.date1
FROM Table1
WHERE (Table1.date1)>=Date();

SELECT Table1.date1
FROM Table1
WHERE (Table1.date1)<Date();

Gary
 

Users who are viewing this thread

Top Bottom