I am having a problem with my SQL statement...

Code:
stry = "Select * from TabCheckHistory where ClientId = '" & CID & "'"
stry = stry & " and Format(CheckDate,'YYYY') = " & LastYear

I guess I can't use the format function in SQL????