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
Upload Images   Link   Email  
Age Unknown Month and Day
James McFadden 
      
3 years ago
I am working with the Full Genealogy Template. I am modifying it to an extent (Foreign Key name change, different naming conventions, etc.) I am importing data from the LDS  Database. (A project for my niece.) With persons born in the 1400 - 1800 time period, all there is most of the time, is a birth year and a death year (if that.) Is it possible to auto calculate age, without jumping through hoops, splitting strings, etc. using the invalid dates: 0/0/1723 and 0/0/1769 as an example, entered simply as 1723 and 1769 as LifeEventDate in the LifeEventF, (or as 0/0/1723,)  then reflected in the PersonF Age, Born/Died fields. Just looking at it; one can see that the age is about 45 -- 46. But when dealing with several hundred of the same, well., even very verbose code would be better, and I have some ideas. (In the process a label is made visible "Age is approximate," triggered by validation logic, in a separate function etc.) The fields on the form are formatted mm/dd/yyyy. Calculations are by the functions as you have written them. (except the foreign key name change.) Hopefully this is clear enough. Thanks
Scott Axton 
          
3 years ago

For me, this might be a case of it may be advantageous to splitting out the date into 3 fields.
BirthYear  - Number
BirthMonth - Number
BirthDay  Number

Then you could do math very easily id BMonth and BDay are empty.  Alternatively combining the dates using  DateSerial would be equally as easy.
Kevin Robertson 
          
3 years ago
I had a similar problem a while back, so I used 2 separate fields - one for an actual date (DateTime) and the other for non-dates (Short Text). Worked well for my needs.

The screenshot below shows three of my records:

1 - An actual date (and time, if needed).
2 - The year only.
3 - Other Date Information.
Kevin Robertson 
          
3 years ago

James McFadden OP 
      
3 years ago
Thank you Gentlemen, for taking the time to respond. Both solutions look promising. Currently I have moved to another issue, but will return to this issue as soon as I clear up the other issue. (query returning ID from Parent Report to sub Report incremented by 1 (ID in report is 1, return is 2) makes daughter a spouse... ooopssss! Logical error. Thanks again gentlemen, Don't worry about the second issue though.
James McFadden OP 
      
3 years ago
Thank you again gentlemen. Both solutions get the job done. I am not certain which solution I will use in the final database, however'they have made my job easier. My college professors, (a lifetime ago) stopped answering my questions'because they figured out that I generally came up with the solution'before they could respond. However, it took me quite some time to solve the issue(s), the answer to which was fairly obvious.  I would tip you both, but there is some security issue with my PayPal account'one more issue to deal with...
James McFadden OP 
      
3 years ago
Not exactly as elegant as I would hope, but this is the solution I came up with. Any thoughts?
James McFadden OP 
      
3 years ago

James McFadden OP 
      
3 years ago

Kevin Robertson 
          
3 years ago
Looks great James.
Scott Axton 
          
3 years ago
I agree - Glad you got it worked out!!
Thank you for the generous tip as well.  Happy to help.

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/26/2025 1:09:57 PM. PLT: 2s