Somewhere in your code, you would need to add something like:
Since iDate is an array containing many dates, you would need to tell the function for which dates you would like to sum, yes? I'm assuming that the values in the array feevalue and the dates in the array iDate are coordinated (they were both the same size). The function merely strolls down the elements in the array iDate looking for a date and when it finds that date it then adds the values in freevalue together:
Note that I'm assuming that for each element (i) in iDate, there is a coordinated value in feevalue. So that feevalue(i) was a fee/charge on iDate(i).
Thus your image suggests that you need:
Where dbSumX represents where you want the sum of the fees for each date. Of course, you don't want to hard code the dates like: #6/22/2010#, but somehow you need to tell the function for which dates you want the sum of feevalue, yes?
Is this making sense, or am I totally off base?
Bookmarks