Problem with date in Access 2003

mbertuol

Registered User.
Local time
Today, 20:00
Joined
Apr 3, 2004
Messages
26
Access 2003 Help shows the following syntax:

Code:
DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]])

Where Interval is
yyyy - year
m - month
d - day


Nevertheless it does not work.

How would you retrieve the number of days between today "Date()" and a given date "DeliveryDate" in an Access 2003 Query?

Many thanks,

Mauro
 
can you be more specific as to why you believe this does not work?

bad numbers?

error messages?

something else?
 
The_Doc_Man said:
can you be more specific as to why you believe this does not work?

bad numbers?

error messages?

something else?

I am attaching a DB with an example. I have a table with [DateONE] and [DateTWO] fields. In the query I have tried to use the expression Expr: DateDiff("d", [DateONE], [DateTWO]). It does not work. Access does not allow the expression. Please try and give some feedback.

Many thanks,

Mauro
 

Attachments

Users who are viewing this thread

Back
Top Bottom