scottyjohn
Technical User
Hi all,
I have a query with results of another query in column1, columkn2, column3.
I amtrying to add a fourth column4 which sums the first three columns. When I use expression builder, and try to sum them using + it seems to concatenate them into a string rather than add them together? Any help or advice would be good! The actual query is as per below
SELECT QryRPAHTstep2.STARTD, QryRPAHTstep2.[RP Brands], Sum(QryRPAHTstep2.TT) AS SumOfTT, Sum(QryRPAHTstep2.HT) AS SumOfHT, Sum(QryRPAHTstep2.ACWT) AS SumOfACWT, Count(QryRPAHTstep2.EMPID) AS CountOfEMPID, [QryRPAHTstep2]![TT]+[QryRPAHTstep2]![HT]+[QryRPAHTstep2]![ACWT] AS Expr1
FROM QryRPAHTstep2
GROUP BY QryRPAHTstep2.STARTD, QryRPAHTstep2.[RP Brands], [QryRPAHTstep2]![TT]+[QryRPAHTstep2]![HT]+[QryRPAHTstep2]![ACWT];
John
ski_69@hotmail.com
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
I have a query with results of another query in column1, columkn2, column3.
I amtrying to add a fourth column4 which sums the first three columns. When I use expression builder, and try to sum them using + it seems to concatenate them into a string rather than add them together? Any help or advice would be good! The actual query is as per below
SELECT QryRPAHTstep2.STARTD, QryRPAHTstep2.[RP Brands], Sum(QryRPAHTstep2.TT) AS SumOfTT, Sum(QryRPAHTstep2.HT) AS SumOfHT, Sum(QryRPAHTstep2.ACWT) AS SumOfACWT, Count(QryRPAHTstep2.EMPID) AS CountOfEMPID, [QryRPAHTstep2]![TT]+[QryRPAHTstep2]![HT]+[QryRPAHTstep2]![ACWT] AS Expr1
FROM QryRPAHTstep2
GROUP BY QryRPAHTstep2.STARTD, QryRPAHTstep2.[RP Brands], [QryRPAHTstep2]![TT]+[QryRPAHTstep2]![HT]+[QryRPAHTstep2]![ACWT];
John
ski_69@hotmail.com
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)