S
Steve
I have a simple HR database with two tables. One is a
staff table and one is a compensation table. The staff
tables is related to the compensation table in a one to
many relationship. Each staff record can have multiple
records in the compensation table, which tracks date of
raises, amount of raise, current annual salary, etc. A
new compensation record is created whenever there's a
raise for the employee.
I can do a totals query to get, for each staff person,
the last record from the related Compensation table's
current annual salary field, using Last in the total row.
Is there any way to get the "Next-to-Last" record in
another column in the query grid, so that a report based
on the query can show two columns: Current Salary and
Last Salary?
Thanks,
Steve
staff table and one is a compensation table. The staff
tables is related to the compensation table in a one to
many relationship. Each staff record can have multiple
records in the compensation table, which tracks date of
raises, amount of raise, current annual salary, etc. A
new compensation record is created whenever there's a
raise for the employee.
I can do a totals query to get, for each staff person,
the last record from the related Compensation table's
current annual salary field, using Last in the total row.
Is there any way to get the "Next-to-Last" record in
another column in the query grid, so that a report based
on the query can show two columns: Current Salary and
Last Salary?
Thanks,
Steve