Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Age, Part 2 < Accounts Receivable | Volume >
Back to Age, Part 2    Comments List
Calculating Age Upload Images   Link   Email  
Ina van Rooyen 
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 
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 
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 
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
etc.


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

Ina van Rooyen 
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 
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 
Oh, and did someone say PUPPIES!? My little guy says hi.
Ina van Rooyen 
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 
How cute, Richard.  What's the little fella's name?
Ina van Rooyen 
I'm not saying your code is wrong.  I just won't need it to the minute and second.
Richard Rost 
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

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Age, Part 2.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/28/2024 5:21:37 AM. PLT: 0s