Hi All
This is probably a simple question.
I'm having a problem assigning a value to a date variable. What i'm looking for is something like this -
Dim RptYear As Integer
Dim RptDate As Date
If month(Now()) < 6 Then
RptYear = Year(Now()) - 2
Else
RptYear = Year(Now()) - 1
End If
RptDate = #06/30/#+RptYear
It doesn't like the last statement.
This is probably a simple question.
I'm having a problem assigning a value to a date variable. What i'm looking for is something like this -
Dim RptYear As Integer
Dim RptDate As Date
If month(Now()) < 6 Then
RptYear = Year(Now()) - 2
Else
RptYear = Year(Now()) - 1
End If
RptDate = #06/30/#+RptYear
It doesn't like the last statement.