getdate() in ms access

A

Ashley

IF I have


sum(IIF (datediff('d', getdate(), #22/11/2003#) between 0 and 30 , 1 ,
0))

it says getdate() not a recognisex function where getdate() is todays
date

what is the way of doing this in access
 
R

RoyVidar

Ashley said:
IF I have


sum(IIF (datediff('d', getdate(), #22/11/2003#) between 0 and 30 , 1
, 0))

it says getdate() not a recognisex function where getdate() is todays
date

what is the way of doing this in access

GetDate is a SQL server function, I think. Use the Date() function in
Access to return todays date.
 

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