How do I reference the current recordset on a CONTINUOUS form and "Sum" the wage field in this recordset based on criteria?
So on Form Current:
Mytextbox = Dsum("wage", CURRENT RECORDSET, "MyField = 'xxx'")
My intention is to compare average wage on employment of clients belonging to 2 separate agencies.
The recordset changes based on button pushed by user.
Need the average wage to change according to current recordset.
I have written several expressions to average wage, but since the recordset is on a continuous form, the average wage result is based on whichever agency appears at the top of the selected list. I have expressions to count instances of each agency in the recordset. I need to "sum" the wage field for each agency. I then have expressions to divide for average wage of each agency.