Hi,
I fixed it by adding the Bold red Then
If tempDate < CDate("6/15/" & Year(Date)) Then
CalcDateTerminaison = CDate("6/15/" & Year(Date))
ElseIf tempDate > DateExp Then
CalcDateTerminaison = DateExp
Else
CalcDateTerminaison = tempDate
End If
Thanks very much for your help.
Dan![]()