I could use a little help getting a mod going. I have a table that in imported from another database, the table has many duplicate records excluding one field so for example i have 5 records that have 52121 as the number key and each field has a different hours in the hours field. What i'm trying to do is go through the table and count all the records that have 52121 and add up all the hours and divdide by the number of records counted. I could use some help in setting up the loops and counts,any help would be awesome. If i was unclear about anything let me know and i will try to clear it up.