Yes, the recordset has the correct results. I made a couple of changes. Here's the file upload of the PHP again. Still not getting right results but use this new upload: Here's the snipped of code I'm trying to resolve. It's just the array_sum($sum) line (I believe). Thanks.