You must have a Group By clause in the query. When you have a Group By clause, every column in the Select list must be included in the clause or in an aggregate function. DSum is a domain aggreagate function that operates independently of the query in which you've embedded it. Most likely, you'll need to use the aggregate function SUM rather than DSum. However, in order to give more specific feedback, I'll need to see the entire query. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums. NOTE: Reference to the FAQ is not directed at any individual.