Sorry to post a new thread on this. I posted one yesterday and it somehow dissapeared (another subject for another day)
What I wrote yesterday was that I needed code for the DateAdd function for two fields (1.Last FYE 2.Next FYE)
LDG1234 & Paul F gave me some helpful advice on how to accomplish this.
Method One:
Private Sub LastFYE_AfterUpdate()
Me.NextFYE = Me.LastFYE + 365
End Sub
Method Two:
Private Sub LastFYE_AfterUpdate ()
NextFYE=DateAdd("yyyy",1,LastFYE)
End Sub
When using both methods, I tried to test whether or not it worked. When I entered a date into the Last FYE, nothing appeared on the next FYE. In fact, the date on the last FYE dissapeared completly.
Does anyone know what I am doing wrong.
Thanks
What I wrote yesterday was that I needed code for the DateAdd function for two fields (1.Last FYE 2.Next FYE)
LDG1234 & Paul F gave me some helpful advice on how to accomplish this.
Method One:
Private Sub LastFYE_AfterUpdate()
Me.NextFYE = Me.LastFYE + 365
End Sub
Method Two:
Private Sub LastFYE_AfterUpdate ()
NextFYE=DateAdd("yyyy",1,LastFYE)
End Sub
When using both methods, I tried to test whether or not it worked. When I entered a date into the Last FYE, nothing appeared on the next FYE. In fact, the date on the last FYE dissapeared completly.
Does anyone know what I am doing wrong.
Thanks