GoodLife22
Registered User.
- Local time
- Today, 13:57
- Joined
- Mar 4, 2010
- Messages
- 86
Hello everyone. I hope you all had a great 4th of July.
I have 2 date fields on my form. When a user enters a date in the first date field I want it to automatically add the date to the second date field. So far I have this:
This part works fine. Now here is where it is too tricky for me.
I need to change the date just a bit. I want to
KEEP MONTH
SWITCH TO FIRST DAY OF THE MONTH (always the first)
THEN ADD 3 YEARS TO THE DATE
So:
05/24/2011 will become 05/01/2014
07/13/2010 will become 07/01/2013
12/22/2012 will become 12/01/2015
Any ideas? Thanks to anyone spends some time looking into this.
I have 2 date fields on my form. When a user enters a date in the first date field I want it to automatically add the date to the second date field. So far I have this:
Code:
Private Sub Date_Started_AfterUpdate()
Me.Date_Finished = Me.Date_Started
End Sub
This part works fine. Now here is where it is too tricky for me.
I need to change the date just a bit. I want to
KEEP MONTH
SWITCH TO FIRST DAY OF THE MONTH (always the first)
THEN ADD 3 YEARS TO THE DATE
So:
05/24/2011 will become 05/01/2014
07/13/2010 will become 07/01/2013
12/22/2012 will become 12/01/2015
Any ideas? Thanks to anyone spends some time looking into this.