Computer Learning Zone CLZ Access Excel Word Windows

Upon the subject of education... I can only say that I view it as the most important subject which we as a people may be engaged in.

-Abraham Lincoln
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Seminars > Genealogy > Lessons >
Back to Genealogy Seminar    Comments List
Calculate Age Upload Images   Link   Email  
Roxanne Drachenberg 
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 
You typed the formula wrong. I can see one too many ) in there toward the end. Double-check it.
Kevin Robertson 
Actually the correct amount of parentheses, but one is in the wrong place.
Hint: Month function.
Richard Rost 
Uh... yeah... what he said. :)
Roxanne Drachenberg 
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.
 

 
 
 

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 7:58:59 AM. PLT: 1s