dates

G

Guest

hi everyone!
does anyone know how to filter a recordset for a specific date.
for example. i keep some dates in an access database of cpr training. i am
making a repeating region listing the people whose cpr license will expire
in 30 days. well how do you construct that kind of sql sentence
SELECT*
FROM table
WHERE cprduedate = <<<<<<<what>>>>>>>
i'm completely lost! i keep dates in form mm/dd/yyyy and am using asp.
thanks a bunch in advance
 
A

Adrian Jansen

You have to delimit the date string with # signs:

WHERE cprduedate = #mm/dd/yyyy#

--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 
G

Grant

Don't know if this will work in asp though

WHERE (DateDiff("d",Now(),[cprduedate]))<30

Regards
Grant
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top