Question : Access Dsum rollup calculations

HI
I'm trying to use the Dsum() function within access to create a 52 week rollup calculation.
but return the total for all records rather than the 52 week rollup , I think my problem is within the criteria part of my calcylation field see below.


I have attached my test database and query: mktblresults

I can get my calculation field calculation: DSum("SumofRenewal_units","tblRollup","[DateConverted] between [DateConverted] and [DateConverted] -99")




My criteria I think is at fault “[DateConverted] between [DateConverted] and [DateConverted] -99”

to give me the roll up for the past 52 weeks, instead it gives me the sum of all weeks.  My criteria I think is at fault “[DateConverted] between [DateConverted] and [DateConverted] -99”

what its meant to do is allow for the last 52 weeks for each week to be summed, do you have an idea of where I might be going wrong ?




 
 
access database
 

Answer : Access Dsum rollup calculations

Still not 100% sure of what you're after but try this.

DSum("SumofRenewal_units","tblRollup","[DateConverted] Between " & [DateConverted] & "  And " & [DateConverted]-99)

Leigh

Random Solutions  
 
programming4us programming4us