Actually, I was expierenced the same problem years back. If you look carefully, the vba year function are actually "year()" without capital "Y".
The function you used shows up like "Year", so I immidiately realised that you have a field, function or variable named "Year".