dearsir ,
thanks for your kind replay
exactly my need is like an bank account deposits
in which deposits will be individual(groupby) ,but the sum of the deposits
will be like the (groupby) of progrssive sum of deposits .
for eg,
TABLE 1
account holder
account
address
TABLE 2
accountnumber
deposit
withdrawl
query:
groupby(accountnumber,accountholder,deposit,withdrawl),progressivesum(groupby(deposit)),progressivesum(groupby(withdrawl)),and finally accountbalence.
sorry for im not being clear.
it looks like [deposit] 100 ,200,300
[withdrawl] 50,0,0
[progressivesum deposit] 100 ,300 , 600
[progressvesum withdrawl] 50,50,50
kindly help
withregards.
Stefan Hoffmann said:
hi Balu,
is it not possible to create a function in VB module to use on querys
like by passing arguments of date and the number to be summed .
kindly give an idea im having the same problom viz,
TABLE name [fueldecanted data]
field decanteddate
" invoicenumber
" openingbalenceoftank
" decantedquantity
now i need in the query BETWEEN [date1] and [date2]
,sum([openingbalence]+[decantedquantity]);and runningsum of each decanting
like this
" openingbalenceoftank" "decantedquantity"
"openingbalenceoftank+decantedquantity"
1000 250 1250
250 1500
As far as I understand you:
DSum("[field1] + [field2]",
"[tableOrQuery]",
"[yourDate] BETWEEN [date1] AND [date2]")
Take a look at the online help.
mfG
--> stefan <--