Hi! I have five text boxes & one button there in my form. I have written this code to get user`s current age. But problem is that I have to get user`s age with months. I am little bit confused. Please help me.
My code to get age :
Private Sub Command1_Click()
BDate = Text1.Text & "-" & Text2.Text & "-" & Text3.Text
CurDate = Now
Text5.Text = DateDiff("yyyy", BDate, CurDate)
End Sub
My code to get age with months :
Private Sub Command1_Click()
BDate = Text1.Text & "-" & Text2.Text & "-" & Text3.Text
CurDate = Now
Text4.Text = DateDiff("m", BDate, CurDate)
Text5.Text = DateDiff("yyyy", BDate, CurDate)
End Sub