Greyowlsl
Mlak Mlak
- Local time
- Tomorrow, 02:15
- Joined
- Oct 4, 2006
- Messages
- 206
Hi guys,
I'm trying to use a very basic datediff function to show the number of years difference between the current date and the date in a text box.
I have look on many forums and tried so many different things.
I am a beginner coder, but I have no idea whats going on.
Here is the last bit of code it tried before i gave up. :banghead:
I appreciate any help.
Thanks guys,
Leon
I'm trying to use a very basic datediff function to show the number of years difference between the current date and the date in a text box.
I have look on many forums and tried so many different things.
I am a beginner coder, but I have no idea whats going on.
Here is the last bit of code it tried before i gave up. :banghead:
Code:
Private Sub Command209_Click()
Dim years As Long
Me.Text176.SetFocus
years = DateDiff("yyy", now, Text176.Value.DATE)
Me.Text207 = years
End Sub
I appreciate any help.
Thanks guys,
Leon