Hey guys,
Wasn't sure how to title this. I have a main table of payroll data. A user can specify an employee and a date range and click "edit." This moves appends that bit of data to secondary table (after deleting previous entries). In this secondary table, the user can change hours, commission, etc. Once they are happy with their changes they click "recalculate." This will run an update query on a bunch of other fields in the secondary table. "HourlyWages", "SalesCommission", and "TotalPay" are the ones that I am concerned with right now. Our employees get paid a base hourly wage plus their commission.
My question:
Can a single update query recalculate HourlyWages and SalesCommission AND use those 2 new values to calculate TotalPay?
There are 25 fields that will actually be updated, but those three give the general idea of my question. I don't want to program all of this to have it not work.