Can't tell about some specifics - not enough info. But there are at least 2 issues: 1. Comma after *. 2. Variable vCurrentYear is 2009. The function Year(2009) returns 1905, because the date(2009) is July 1, 1905. If you want previous year, it should be just $(vCurrentYear)-1. (And, the field name probably should bebetter NUM_SALES_LASTYEAR instead of NUM_SALES_2008.)