I have a totals query that has an expression which is somewhat complex. I am attempting to derive the previous salary or hourly rate of employees based upon their current salary/rate and the percent change from the previous salary/rate. Here is the expression:
Prior Salary: First(IIf([EecSalaryOrHourly]=’S’,[qselLastSalaryChange]![EjhASalary]/(1+([qselLastSalaryChange]![EjhPctChange]/100)),([qselLastSalaryChange]![EjhHPayRate]/(1+([qselLastSalaryChange]![EjhPctChange]/100)))))
When I try to run this I get a message that simply says “Overflow” and nothing else. The “Help” button is grayed out. I “borrowed” this expression from another db where I am told it works fine. The source of the data is from pass through SQL queries. Any help appreciated.