Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

date diff calculated incorrectly

Forum home » Delegate support and help forum » Microsoft Access Training and help » Date diff calculated incorrectly

Date diff calculated incorrectly

ResolvedVersion 2010

Steve has attended:
Access Introduction course
Access Intermediate course

Date diff calculated incorrectly

When calculating the difference between a birth date and the date() function the answer was 1 out. for example the birth date was 6th December 1968 and today is the 20th January 2011. Access 2010 calculated this to be 43 years when in fact it is not 43 years until todays date is the 6th december 2011. Access returned 42 as the result. Is this a bug?

RE: date diff calculated incorrectly

Hi Steve

Thanks for your question

As promised i am looking into this, and hope to have a definative answer within thenext few days. My initial reserarch suggests that there is a problem with the algorithm that microsoft have not yet resolved

Regards

Stephen

 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Access tip:

How To Display An '&' In A Label In A Form

To have your label display a sentence with an &(ampersand) in it, like Fox & Hound simply type it as:

Fox && Hound

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.