Why doesn't this work?
I keep getting a "Type Mismatch" error during run time. It compiles OK however.
Also, I noticed that if I replace Year with the Month or Day function, the code works just fine -
What am I doing wrong?
Thanks Q: Why is my computer doing that?
A: Random Perversity of Inanimate
Objects
Code:
If (Year([DepositDue])) = 2002 Then
Do stuff
End if
I keep getting a "Type Mismatch" error during run time. It compiles OK however.
Also, I noticed that if I replace Year with the Month or Day function, the code works just fine -
What am I doing wrong?
Thanks Q: Why is my computer doing that?
A: Random Perversity of Inanimate
Objects