Actually, I think Doug forgot the () after "date". When writing code, the
()s are necessary and if you type them in, they are removed.
WHERE DateDiff("d", Date(), DateSerial(Year(Date()), Month(dtmDOB),
Day(dtmDOB))) < 7
To get help on functions, you can open any module and then press F1 and
search Help. Otherwise books like Access 2003 Inside Out by John Viescas
often have complete function references. John has his on the CD that
accompanies the book.
--
Duane Hookom
MS Access MVP
Gene Sun said:
Hi Doug,
Thank you for your reply. I did not expect there was such a wonderful
place to find professional help (and get it without paying). (Actually,
under certain circumstances, I would be very much willing to pay a lot to
get the problem fixed!)
As to your reply, could you explain what is "year(date)", which seems not
working. By the way, is there any place I can find the explanation for every
function stored in Access?