Could be one or a few issues there.
- not "Foster" but Foster. [Foster] would be another possibility but I think that is somewhat remote.
- in Access, DSum is a Domain (table or query) function. Since Foster is not in the domain but is an alias for your IIF function, I doubt you can Dsum on it even as Foster or [Foster]. Perhaps you can Sum it instead. However, as Sum I think you'll have to group by at least one field. You might have to use a separate query or function to perform the sum.
Sometimes it's a great help (even necessary) if you copy the db, compact/repair the copy, zip it and upload to a post.
If info is sensitive, perhaps see Randomizing Data for Posted db's
Last edited by Micron; 09-27-2021 at 05:39 PM.
Reason: added comment
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.