I'm creating a report that creates a value from AwardedUnits * NetAssetValue, and creates a check using that value (it does a couple other irrelevant things, also.)
I take the Sum() of the awards, and here is the SQL:
The query gives me 107 = [SumOfRemainingU nits], however, when I run the report it asks me for [SumOfRemainingU nits].
Anyone have any ideas?
I take the Sum() of the awards, and here is the SQL:
Code:
SELECT BenePayoutTbl1.BeneID, BenePayoutTbl1.BeneFirst, BenePayoutTbl1.BeneLast, BenePayoutTbl1.PrimaryBene, Sum(BenePayoutTbl1.UnitsRemaining) AS SumOfUnitsRemaining, AstBeneficiaryTbl.BenStreet, AstBeneficiaryTbl.BenCity, AstBeneficiaryTbl.BenState, AstBeneficiaryTbl.BenZip, [FederalTax] AS Expr1, [StateTax] AS Expr2, BenePayoutTbl1.NAV_Dt, NAV_Tbl.NetAssetValue FROM NAV_Tbl INNER JOIN (AstBeneficiaryTbl INNER JOIN BenePayoutTbl1 ON AstBeneficiaryTbl.BeneficiaryID = BenePayoutTbl1.BeneID) ON NAV_Tbl.NAV_Date = BenePayoutTbl1.NAV_Dt GROUP BY BenePayoutTbl1.BeneID, BenePayoutTbl1.BeneFirst, BenePayoutTbl1.BeneLast, BenePayoutTbl1.PrimaryBene, AstBeneficiaryTbl.BenStreet, AstBeneficiaryTbl.BenCity, AstBeneficiaryTbl.BenState, AstBeneficiaryTbl.BenZip, [FederalTax], [StateTax], BenePayoutTbl1.NAV_Dt, NAV_Tbl.NetAssetValue;
Anyone have any ideas?
Comment