Free Lessons Courses Seminars TechHelp Fast Tips Templates Topic Index Forum ABCD

 Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon More... What's New? Popular Links ------------ Access Courses Access Index Access TechHelp Access Forum Access Troubleshooter Access Developer Network ------------ Excel Courses Excel Index ------------ Code Vault Testimonials Tip Jar Advice for Consultants

 Home > TechHelp > Directory > Access > Age, Part 2 < Accounts Receivable | Volume >
 Back to Age, Part 2    Comments List
 Ina van Rooyen  3 years 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              3 years 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             3 years 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.
 3 years 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 etc.``` That function ALONE is worth the cost of Gold Membership. Took me a while to write.
 Ina van Rooyen  3 years 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.
 3 years 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.
 3 years ago
 3 years ago Oh, and did someone say PUPPIES!? My little guy says hi.
 Ina van Rooyen  3 years 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  3 years ago How cute, Richard.  What's the little fella's name?
 Ina van Rooyen  3 years ago I'm not saying your code is wrong.  I just won't need it to the minute and second.
 3 years 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
 3 years ago

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