Jay,
Try open the debug window by pressing Ctrl+G and then enter
?DSum("[amount]","[pledge query]","[record type]='P'")
and press enter.
Do you get the expected result?
Is [Pledge Query] based on a parameter prompt?
Is [Pledge Query] the same as your report's record source?
What is the name of the text box?
--
Duane Hookom
Microsoft Access MVP
Jay Martz said:
I have been trying to select records based on a column value and display
the sum in a report. I have tried various syntax, inlduding the one you
posted and I simply get "#error" in the value on the report. My syntax is
currently =DSum("[amount]","pledge query","record type='P' ") . according
to the access documentation you are supposed to put [ ] around the "record
type" but that doesnt work either. same result, any suggestion?