G
Guest
Hi All
I have a query which I wrote in MS Query and works fine - however the column
headings are horrible so I renamed them (using as etc) but now the formulae
that uses those columns wont wrok. For example I have two columns returned
based on a formula. If I change the SQL to read column 1 as A and column 2 as
B to make it more readable my third column which I would like to be ((A/B)/A)
wont work. Any clues if you follow this at all?
Heres some of the SQL
SELECT DH.ACCOUNT, CS.NAME, Sum(DH.CARDSHIP) AS 'A',
SUM((DH.CARDSHIP*PH.RETAIL)/1.175) AS 'B',
Sum(DH.CARDSHIP*(PH.WHOLESAL/PH.UNITCONT)) AS 'C', SUM(('B'-'C')/'B') AS
'MARGIN'
Its the margin one that doesnt work
Thanks
Reggiee
I have a query which I wrote in MS Query and works fine - however the column
headings are horrible so I renamed them (using as etc) but now the formulae
that uses those columns wont wrok. For example I have two columns returned
based on a formula. If I change the SQL to read column 1 as A and column 2 as
B to make it more readable my third column which I would like to be ((A/B)/A)
wont work. Any clues if you follow this at all?
Heres some of the SQL
SELECT DH.ACCOUNT, CS.NAME, Sum(DH.CARDSHIP) AS 'A',
SUM((DH.CARDSHIP*PH.RETAIL)/1.175) AS 'B',
Sum(DH.CARDSHIP*(PH.WHOLESAL/PH.UNITCONT)) AS 'C', SUM(('B'-'C')/'B') AS
'MARGIN'
Its the margin one that doesnt work
Thanks
Reggiee