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

DSum Function, 2 numbers from different queries, and 2 from the same.. 1

Status
Not open for further replies.

Triacona

Technical User
Jun 11, 2009
462
GB
I would really appreciate some help please.[ponder]
I have looked into the DSum Function.
I have successfully pulled through from the query Q1d the number needed using Dlookup:
=DLookUp("Q1d","Q1D")
I tested the Dsum function by just referencing the same criteria:
=DSum("Q1d","Q1D")
That works and brings through the right number for that field.
But if I do the following:
=DSum("Q1d","Q1D" + "Q1d","Q1D")(Adding the 2 numbers together?)
It gives me an error.
I'm testing it to use on multiple queries.
I know you can add text boxes together and I have already done this, is there a more elegant way?
Thank you very much :)
Much appreciated
Kind regards
Triacona [smile]
[pc2]
 
how about
Code:
dsum("field1+field2",tablename,"feildx=Somevalue")
 
Thank you very, very much!! [smile]
It works!!
Could you tell me if I for instance want to take a
field: OHBQ from Query called: Q1aOHBQ
and add it to a
field: Q1D from another Query called: Q1d
How would I go calling multiple table fields?
What I have at current, works: (Thank you again [smile])
Code:
[b]=DSum("Q1d+Q1d","Q1D") [/b]

I have tried the following formula for adding two fields from two differnt Queries??:
Code:
[b]=DSum("Q1d+OHBQ","Q1D","Q1aOHBQ")[/b]
gave me an error..

Any help would be very much appreciated [bigsmile]
Kind regards
Triacona
 
DSum("Q1d+Q1d","Q1D")+dsum("OHBQ ","Q1aOHBQ")
 
Thank you so much!! It works!
That it is great!! [cheers][smile]
Learning all the time [atom][idea]
Thank you again!
Kind regards
Triacona
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top