Ohhhhh ok I think I see what you were referring to in terms of syntax. Sorry about this... After reviewing that link again, I came up with this:
=DCount("ProductSold","Payroll1","ProductSold='Digital'")
Which looks like it fits the syntax of the link you sent me, but I still get that #Error...