Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > Age, Part 2 < Accounts Receivable | Volume >
Age, Part 2
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   6 months ago

Checking the Accuracy of Original Age Calculations

 S  M  L  XL  FS  Join Now

In this video, we will examine the Age calculations in my original Microsoft Access Age video and see just how accurate they are. I built a database to run through 10 million date calculation iterations, and it turns out the original formula is 99.91% accurate. I will, however, show you a more advanced formula that is always 100% accurate. 

Rabid Follower (a YouTube Subscriber) says: I think dividing by 365.2524 could lead to erroneous results pretty often, and it's not "1 in 5000" like you said... It’s more like 1 in 486 from my calculation.


Members will see exactly how I built my database to perform my calculations to check my accuracy. 

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to contact me so I can set up your account here on my web site. If you're not a member, Join Today!


Learn More

FREE Access Beginner Level 1
Access Level 2 for $1.00

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates


Mailing List - Get Emails When New Videos Released!
Consulting - Need Help with Your Database?


Please feel free to post your questions or comments below or submit them via the TechHelp page.


microsoft access, ms access, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #instruction, #learn, #lesson, #training, #database, calculating age part 2, age in access, 100% accurate age in microsoft access, datediff, dateserial 


Calculating Age Upload Images   Link 
Ina van Rooyen 
2 months ago
Hi Richard, using your code for calculating age, is it possible to include months and days as well, and not just the year?
Adam Schwanz
2 months ago
You can get the TOTAL months or days by using the same formula with m or d instead of yyyy. I'm guessing what you want isn't that simple though, you want to see the leftovers right?

I was able to get leftover months by doing the month calculation - (yearcalculation*12).

Leftover days on the other hand.... I'm lost, maybe Richard has an idea.
Scott Axton
2 months ago
Ina -
Calculating days is easy.  Just D1 - D2
Months a little more difficult because of February.  If you are not real concerned about that just multiply years from the age calc x 12.
Richard Rost
2 months ago
Code Vault: How Long Function. Will give you responses like:

2 years, 22 days, 15 hours, 39 minutes
2 yr, 2 mo
22 days ago
in 4 years, 4 months

That function ALONE is worth the cost of Gold Membership. Took me a while to write.

Ina van Rooyen
2 months ago
You are a genius, Richard.  That is exactly what I need, however, not right to the minutes though. When you work with puppies you work with days, weeks and months.
Richard Rost
2 months ago
Are you saying the function is wrong to the minutes, or you don't NEED that level of accuracy? You can pick whatever units you want. You can get years, months, days, down to the seconds if you want.
Richard Rost
2 months ago

Richard Rost
2 months ago
Oh, and did someone say PUPPIES!? My little guy says hi.
Ina van Rooyen
2 months ago
This function is indeed very handy for my purposes.  I can also use it to calculate the exact interval between heat seasons.
Ina van Rooyen
2 months ago
How cute, Richard.  What's the little fella's name?
Ina van Rooyen
2 months ago
I'm not saying your code is wrong.  I just won't need it to the minute and second.
Richard Rost
2 months ago
That's Carter. He's 8 months old. That pic is actually from when he was a puppy. Here he is today... too big for that cubby I made for him at the bottom of one of the bookshelves in my office, but he still crawls in there. LOL
Richard Rost
2 months ago

Add a Reply

Show All Comments

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

10/21/2021Conditional Formatting
10/20/2021Text Messages
10/19/2021Late Binding
10/18/2021Open Form
10/17/2021Date Only?
10/16/2021Relink Tables
10/16/2021Access Developer 34
10/16/2021Access Developer 34 Lessons
10/16/2021Access Developer 34
10/10/2021Copy Text from Field

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Account Login
Online Theater
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: TechHelp Access calculating age part 2, age in access, 100% accurate age in microsoft access, datediff, dateserial   PermaLink