Question: Is the subform bound to a table Query?
If so, I've got away with a simpler query a bunch of times: Dcount("field to count", "table", "(criteria, ie: "1ry key field = " & variable)"
Set the variable to the value of some textbox bound to a field whose value is shared across the...