Hi All - hope you can help.
I am trying to get a year value from the current date, the code is:-
However every time I try to run the code I get a Type mismatch error(error code 13). The really frustating part is that I have two similar forms in the database and the code works fine in one form but not in the other.
Any ideas gratefully accepted.
Thanks
Dave
I am trying to get a year value from the current date, the code is:-
Code:
[INDENT]Dim CurrentYear as Long
CurrentYear = Year(Date)
[/INDENT]
Any ideas gratefully accepted.
Thanks
Dave