H
hughess7
Hi all
I have a query which displays running MTD totals, I want to add a column to
this for the running YTD total too. I think I need to use DSUM for this but
can not get the syntax correct. I have tried finding a solution on the
newsgroups and used an example:
YTDTotal: DSum("[qry CB YTD].[CBEuros]","[qry CB YTD]","[ReportingDate]<=" &
[reportingdate])
but then I read a posting which said this will only work if the
ReportingDate is unique, which it isn't. It is grouped by each country for
MTD totals. It is also not a date field, stored 2005-01, 2005-02 etc for the
sorting order to be correct on a report.
Can anyone help with this?
Thanks in advance...
Sue
I have a query which displays running MTD totals, I want to add a column to
this for the running YTD total too. I think I need to use DSUM for this but
can not get the syntax correct. I have tried finding a solution on the
newsgroups and used an example:
YTDTotal: DSum("[qry CB YTD].[CBEuros]","[qry CB YTD]","[ReportingDate]<=" &
[reportingdate])
but then I read a posting which said this will only work if the
ReportingDate is unique, which it isn't. It is grouped by each country for
MTD totals. It is also not a date field, stored 2005-01, 2005-02 etc for the
sorting order to be correct on a report.
Can anyone help with this?
Thanks in advance...
Sue