Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Genealogy Seminar    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Calculate Age
Roxanne Drachenberg 
     
3 years ago
Following along on Genealogy Seminar Lesson 04 time 16:00 on Public Function CalculateAge(d1 as date, d2 as date) as long
   CalculateAge = CalculateAge = DateDiff("yyyy", d1, d2) + (DateSerial(Year(d2), Month(d1, Day(d1)) > d2)
First error said expected: ) so I added another ) at the end because I couldn't find a missing one.
Then I get this error: Compile error: wrong number of arguments or invalid property assignment and it takes me to the public function calculateage mentioned above.
Please help.
Thank you in advance.
Richard Rost  @Reply  
           
3 years ago
You typed the formula wrong. I can see one too many ) in there toward the end. Double-check it.
Kevin Robertson  @Reply  
          
3 years ago
Actually the correct amount of parentheses, but one is in the wrong place.
Hint: Month function.
Richard Rost  @Reply  
           
3 years ago
Uh... yeah... what he said. :)
Roxanne Drachenberg OP  @Reply  
     
3 years ago
Boy, I just could not see that.  I looked through the line seven times and never saw that.  Thanks!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Genealogy Seminar.
 

Next Unseen

 
New Feature: Comment Live View
 
 

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 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 6/25/2026 12:04:17 AM. PLT: 1s