Hello to everyone here on forum!
I have a little problem. I have a form where I can see all the employees and informations about them. There is also text box wich has information from what date worker is in our company and another text box wich has information how many years worked in any other company.
Than there is a third text box that calculates from previous two how many years worker is employeed all togheter.
Every thing is ok, but I would need that third text box would be showing not just years but : YEARS / MONTHS / DAYS
Does anyone know how to do that? Thank you very much in advance and sorry for my clumsy Englih
Below is the code that I'm using now:
Private Sub AllTogheterWork_Enter()
Dim sdd As Integer
Dim year As String
sdd = DateDiff("yyyy", Me.DateHere, Date)
If Me.PrevWork <> 0 Then
Me.AllTogheterWork.Value = sdd + Me.PrevWork
Else
Me.AllTogheterWork.Value = sdd
End If
End Sub
I have a little problem. I have a form where I can see all the employees and informations about them. There is also text box wich has information from what date worker is in our company and another text box wich has information how many years worked in any other company.
Than there is a third text box that calculates from previous two how many years worker is employeed all togheter.
Every thing is ok, but I would need that third text box would be showing not just years but : YEARS / MONTHS / DAYS
Does anyone know how to do that? Thank you very much in advance and sorry for my clumsy Englih

Below is the code that I'm using now:
Private Sub AllTogheterWork_Enter()
Dim sdd As Integer
Dim year As String
sdd = DateDiff("yyyy", Me.DateHere, Date)
If Me.PrevWork <> 0 Then
Me.AllTogheterWork.Value = sdd + Me.PrevWork
Else
Me.AllTogheterWork.Value = sdd
End If
End Sub