Now puts error message if a year-only query is outside the allowable
range.