Solved Sum total 1 column

KoskeKos

New member
Local time
Today, 21:32
Joined
May 4, 2021
Messages
28
Hi.
I need to run trough rows,
sum total value in column and
use that value for further calculations.


1662478212495.png
 
?? More info needed??
What do the various records(lines) represent?
 
Use DSum() ?
 
Thank you all and Sorry for delay...This is situation:
I have
1662632763706.png


I need sum InitExposure_Gross column
and use that value for further calculations.
 
Use the DSum function.
Code:
YourVar = DSum("InitExposure_Gross", "YourTable")
 
I need to run trough rows,
sum total value in column
use Total Query:

SELECT ID_CLIENT, SUM(InitExposure_Gross) As SumExposure FROM yourTableName
GROUP BY ID_CLIENT;
 
You didn't answer my question regarding a running sum. The other people are guessing as to what you actually need. Please post a picture of the results you want.

@XPS35 assumed you wanted ONE figure and that was the sum of all the rows in the table AND you wanted it for use in VBA
@arnelgp assumed you wanted the results in a query with one line for each client and a sum of the column for that client
Sorry for lack of info.
Data come in once a month. I need to sum last column "InitExposure_Gross". Thats why i posted second picture (first time i did it in hurry :) ). I realized that i had Date field for "anchor". I will try to use XPS35 solution cause i think it will do the job.
And if dont, i'll buy beer for everyone. Cold. 🍻🍻🍻
 

Users who are viewing this thread

Back
Top Bottom