R
renvik
Hi folks -
I have the following piece of code:
Private Sub Report_Activate()
Dim strRoll As String, numYear As Integer
If Month(Date) >= 1 And Month(Date) <= 12 Then
strRoll = Me!RollNum
numYear = Year(Date)
Me!Session = Year(Date)
End If
The problem is that while the Month(Date) works fine but Year(Date) gives
the error 'object not in collection'!
How can this be? Or am I missing something?
Thank you.
KKB
I have the following piece of code:
Private Sub Report_Activate()
Dim strRoll As String, numYear As Integer
If Month(Date) >= 1 And Month(Date) <= 12 Then
strRoll = Me!RollNum
numYear = Year(Date)
Me!Session = Year(Date)
End If
The problem is that while the Month(Date) works fine but Year(Date) gives
the error 'object not in collection'!
How can this be? Or am I missing something?
Thank you.
KKB