Part of the problem (and thisi s after a only looking for a couple of minutes) is the control source of the hidden text boxes on the right of the payroll form are wrong.
You have the following in the countbasic text box:
=DCount("ProductSold","PayrollbyRepID","ProductSold = 1")
But you do not...