L
LDS
I’m using Access97. I have a report based on 2 queries. The first query uses
the aggregate sum function to total each employee’s overtime hours (General
number, 2 decimals). The query groups by social security number and sums
overtime hours. The second query sorts the overtime hours total in ascending
order, then sorts by the employee’s seniority ranking (in ascending order)
pulled from another table. All but 3 records sort correctly. There are 15
records having 6.61 as their total overtime hours. The first 3 seem to be in
a group of their own. They are sorted by seniority ranking. The next group,
also with 6.61 as their total, are sorted by their seniority ranking. I don’t
see anything wrong with their seniority ranking field. It’s just a number.
The overtime hours totals are all positive numbers although the sum query
adds positive and negative numbers. If the employee had no overtime there’s
a record with 0 hours in it. The totals are correct. They’re just not in the
correct seniority ranking order. The really strange thing is I took the
first record out of order and increased the number of records summed but kept
it so that it still had a total of 6.61. The record moved to the correct
position in the second query! That doesn’t make sense to me. Does anyone
have any idea what might be going on? I’m out of ideas. I need help right
away. Thanks for any suggestions.
the aggregate sum function to total each employee’s overtime hours (General
number, 2 decimals). The query groups by social security number and sums
overtime hours. The second query sorts the overtime hours total in ascending
order, then sorts by the employee’s seniority ranking (in ascending order)
pulled from another table. All but 3 records sort correctly. There are 15
records having 6.61 as their total overtime hours. The first 3 seem to be in
a group of their own. They are sorted by seniority ranking. The next group,
also with 6.61 as their total, are sorted by their seniority ranking. I don’t
see anything wrong with their seniority ranking field. It’s just a number.
The overtime hours totals are all positive numbers although the sum query
adds positive and negative numbers. If the employee had no overtime there’s
a record with 0 hours in it. The totals are correct. They’re just not in the
correct seniority ranking order. The really strange thing is I took the
first record out of order and increased the number of records summed but kept
it so that it still had a total of 6.61. The record moved to the correct
position in the second query! That doesn’t make sense to me. Does anyone
have any idea what might be going on? I’m out of ideas. I need help right
away. Thanks for any suggestions.