By Richard Rost 3 years ago
Use the DateAdd Function to Add Whole Calendar Months
In this Microsoft Access tutorial, I will teach you how to use the DateAdd function in Microsoft Access to add or subtract whole days, months, years, hours, minutes, seconds, weeks, or quarters from any date.
Coen from Glendale AZ (a Silver Member) asks: how do I determine what date is exactly six months in the future from a specific date? I can't just add 180 days. It's for a warranty program, so it needs to be exactly six calendar months. Furthermore, if the warranty happens to expire on the weekend, we give them until the following Monday to come in for service. How can I handle that?
I'll show you how to handle part two of the question: if the warranty ends on a weekend, move the date up to Monday. Also, I'll show you how to put "WARRANTY EXPIRED" in big red & yellow letters right on the customer form.
Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to register on my YouTube Find User page so I can set up your account here on my web site. If you're not a member, Join Today!
Subscribe to DateAdd
Get notifications when this page is updated