G
Guest
Greetings -
I'd be grateful for any help on the correct syntax using an AND operator in the criteria within a DSUM function. In my particular case, I'm trying to sum the values for MONTH where the Profit Center [PC] equals the PC in the current report subgroup and the account group [Grp2] equals a fixed string. One of several failed attempts looks like this
=DSUM("[MONTH]","RecordsourceQueryName","[PC]="&[PC] AND [Grp2]='In-Store Sales'
The ' "[PC]="&[PC] ' works fine and successfully returns the Procift center code in a DLOOKUP verstion of the function, but I can't seem to get around some conflict with the combination of the ' "[PC]="&[PC] ' and the string criteria with the AND operator
Any suggestions
Does anyone know the technical term for the dynamic or self-referencing critiera like ' "[PC]="&[PC] '
Many thanks
I'd be grateful for any help on the correct syntax using an AND operator in the criteria within a DSUM function. In my particular case, I'm trying to sum the values for MONTH where the Profit Center [PC] equals the PC in the current report subgroup and the account group [Grp2] equals a fixed string. One of several failed attempts looks like this
=DSUM("[MONTH]","RecordsourceQueryName","[PC]="&[PC] AND [Grp2]='In-Store Sales'
The ' "[PC]="&[PC] ' works fine and successfully returns the Procift center code in a DLOOKUP verstion of the function, but I can't seem to get around some conflict with the combination of the ' "[PC]="&[PC] ' and the string criteria with the AND operator
Any suggestions
Does anyone know the technical term for the dynamic or self-referencing critiera like ' "[PC]="&[PC] '
Many thanks