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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Total from Sum Query in Unbound Text Box on Form 1

Status
Not open for further replies.

SColbert

Technical User
Sep 25, 2003
49
US
I've got two forms (Golfers and Sponsors) based on two tables (also Golfers and Sponsors). Tables are linked via GolferID field.

There is an unbound text box on the Golfers form that I'd like to use to show the total amount pledged for each golfer. I've created a Sum Query that's working, but can't get the Total Pledged to populate the unbound text box - just get the #Name? error.

I know this should be simple, but can't wrap my head around it this afternoon - Help!
 
Have a look at the DSum function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks - when I tried that, I got an error stating "Automation Object not supported" in reference to the query name qryPledgeTotal.

My expression read:
=DSum([PledgeTotal],[qryPledgeTotal],["GolferID = & "GolferID])
 
I guess that qryPledgeTotal already does the summation:
=DLookUp("PledgeTotal", "qryPledgeTotal", "GolferID=" & GolferID)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Of Course! It was right in front of me - too close to see, obviously. Thanks much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top