Adding DSum

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to add to different DSum's and divide by the sum of two DCounts. I
started by just adding two DSums and getting error(#Name?).
=DSumAvg("[TurnAroundTime]","qryCollateraQualityListPartsShippedTurnaroundTime")+DSum("[TurnAroundTime]","qryBillableQualityListRepairsShippedByDate")

My guess is bracketing?

or do I have to use 4 different text boxes - make them invisible and do the
math from those boxes?
 
What is DSumAvg ?

Perhaps what you want is
=DSum("[TurnAroundTime]","qryCollateraQualityListPartsShippedTurnaroundTime")
+
DSum("[TurnAroundTime]","qryBillableQualityListRepairsShippedByDate")

IF you want the Average of those 2 values then divide by 2
=(DSum("[TurnAroundTime]","qryCollateraQualityListPartsShippedTurnaroundTime")
+
DSum("[TurnAroundTime]","qryBillableQualityListRepairsShippedByDate")) / 2

Note the inclusion of a new set of parentheses. That is to ensure the order
of operation. Without the parentheses the 2nd DSUM would be divided by 2
and then added to the 1st DSum.
 
Dah! I'm Sorry DSumAvg was a typo.Thankyou that fixed it
I beleive(other than DSumAvg) I had the same syntac
--
Thanks for any assistance


John Spencer said:
What is DSumAvg ?

Perhaps what you want is
=DSum("[TurnAroundTime]","qryCollateraQualityListPartsShippedTurnaroundTime")
+
DSum("[TurnAroundTime]","qryBillableQualityListRepairsShippedByDate")

IF you want the Average of those 2 values then divide by 2
=(DSum("[TurnAroundTime]","qryCollateraQualityListPartsShippedTurnaroundTime")
+
DSum("[TurnAroundTime]","qryBillableQualityListRepairsShippedByDate")) / 2

Note the inclusion of a new set of parentheses. That is to ensure the order
of operation. Without the parentheses the 2nd DSUM would be divided by 2
and then added to the 1st DSum.

NNlogistics said:
I want to add to different DSum's and divide by the sum of two DCounts. I
started by just adding two DSums and getting error(#Name?).
=DSumAvg("[TurnAroundTime]","qryCollateraQualityListPartsShippedTurnaroundTime")+DSum("[TurnAroundTime]","qryBillableQualityListRepairsShippedByDate")

My guess is bracketing?

or do I have to use 4 different text boxes - make them invisible and do
the
math from those boxes?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DSum 2
Dsum Issues 0
Help needed with IF DSum in query 9
Dsum Help 0
Domain in DSum function 6
dsum sytax error 5
Adding mutliple dsums 3
dsum with multiple criteria and decimals 0

Back
Top