Hi,
I'm SO close, but I have a problem with a crosstab/cartesian product query that I based on Duane Hookum's example. Here's what I have:
TRANSFORM sum(iif([Fldname]="Balance",[Balance],[Return])) AS TheVal
SELECT rptBF_Custom5.PolicyNumber, rptBF_Custom5.IAName, rptBF_Custom5.TPMName
FROM rptBF_Custom5, tblBF_Custom5_Fields
GROUP BY rptBF_Custom5.PolicyNumber, rptBF_Custom5.IAName, rptBF_Custom5.TPMName
PIVOT [FldName] & rptBF_Custom5.Period;
What I need is the Sum([Balance]) or the Avg([Return]) as the value.
I'll probably kick myself when I see the answer, but I'm at a loss! TIA!
Joanne
I'm SO close, but I have a problem with a crosstab/cartesian product query that I based on Duane Hookum's example. Here's what I have:
TRANSFORM sum(iif([Fldname]="Balance",[Balance],[Return])) AS TheVal
SELECT rptBF_Custom5.PolicyNumber, rptBF_Custom5.IAName, rptBF_Custom5.TPMName
FROM rptBF_Custom5, tblBF_Custom5_Fields
GROUP BY rptBF_Custom5.PolicyNumber, rptBF_Custom5.IAName, rptBF_Custom5.TPMName
PIVOT [FldName] & rptBF_Custom5.Period;
What I need is the Sum([Balance]) or the Avg([Return]) as the value.
I'll probably kick myself when I see the answer, but I'm at a loss! TIA!
Joanne