Help! I've been struggling with this expression for days! It's in an MS Access report:
=DSum("[Estimated Commissions]","Producer tracking query","[Status]='Closed Successfully'"AND"[Activity Type]='HAPR'"
When I reference the table as the domain, it works, but it gives me all the values in the table that meet the criteria. But I'm running this report from a query, I only want records in a certain date range, etc. When I reference the query (Producer tracking query) I get an #Error result.
Can you use a query as the domain in a DSum expression, and if so, how?
=DSum("[Estimated Commissions]","Producer tracking query","[Status]='Closed Successfully'"AND"[Activity Type]='HAPR'"
When I reference the table as the domain, it works, but it gives me all the values in the table that meet the criteria. But I'm running this report from a query, I only want records in a certain date range, etc. When I reference the query (Producer tracking query) I get an #Error result.
Can you use a query as the domain in a DSum expression, and if so, how?