Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DSum not working in report

Status
Not open for further replies.

jlg5454

Technical User
Jan 6, 2005
98
US
This formula in my report returns no value.

DSum("[CountOfOpId]","qry_Apps","[Team Name]"='Sales Team 2').

Thanks for any assistance
 
Try replacing "[Team Name]"='Sales Team 2'
with "[Team Name] = " & 'Sales Team 2'

Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.
 
Thanks,

I tried using your suggestion and I received #error.

 
OOPS! my bad!
Assuming Sales Team 2 is a text box name from the report,
change it to SalesTeam2
THEN
Try replacing "[Team Name]"='Sales Team 2'
with "[Team Name] = '" & SalesTeam2 & "'"

Sorry!!

Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read.
 
Thanks for your help. I figured it out. It should be

=DSum("[CountOfOpId]","qry_apps","[Team Name]='Sales Team 2'")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top