Tronsliver
Technical User
I'm looking for the ability to strip the decmial off a number after a division operation. Also I want to convert a value into a String. Here is the code. The "Left" function and the "Str" funtion isn't reconized. Can someone give me a comparible solution?
Public Function Caldates(EffectiveDate)
Dim TheDate As Variant
TheDate = DateDiff("m", EffectiveDate, Now)
If TheDate >= 12 Then
TheDate = Left(Str(TheDate / 12), 4)
Caldates = TheDate + " Yr"
Else
If TheDate < 12 Then
TheDate = TheDate
CalDate = TheDate + " Months"
End If
End If
End Function
Public Function Caldates(EffectiveDate)
Dim TheDate As Variant
TheDate = DateDiff("m", EffectiveDate, Now)
If TheDate >= 12 Then
TheDate = Left(Str(TheDate / 12), 4)
Caldates = TheDate + " Yr"
Else
If TheDate < 12 Then
TheDate = TheDate
CalDate = TheDate + " Months"
End If
End If
End Function