Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateDiff Expression in Access 2003-Simple?

Status
Not open for further replies.

CEF2007

Technical User
Jan 24, 2007
2
US
Running access 2003 and want to have field value (3) produce the result (in days) between field dates 1 and field dates 2.

The expression I've used is:

=DateDiff("d",[field1],[field2])

All I get in field 3 is a zero. I've tried different variations of the above expression such as "d", or no "'s or 's

What am I doing wrong?
 
Have you checked to see if [field1] and [field2]
are set up as a date field and if you are using a built in
function to populate either field, this might cause your
problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top