G
Guest
I require a report (in Excel) using data stored in Excel whcih uses the
PIVOT/TRANSFORM SQL function. I've attempted this in ADO as unfortunately
the Pivot Table function in Excel doesn't appear to be able to support my
complex calculation (Sum(AVE)/Sum(Amt))
My connection string etc works - But the SQL string is rejected error.
Basically the query reads as follows:
TRANSFORM (Sum([Ave])/Sum([Amt])) AS EXP1
SELECT [Deal Type], Subbranch, Ccy
FROM [Group Data$]
GROUP BY [Deal Type], Subbranch, Ccy
PIVOT Sheet;
I could build this in Access (as I know it works there) but I've started in
Excel and I thought ADO could handle this.
however I get an error message saying
"Jet engine does not recognise the field name sheet" (abreviated version)
Any help would be much appreciated.
Kind Regards
Rob
PIVOT/TRANSFORM SQL function. I've attempted this in ADO as unfortunately
the Pivot Table function in Excel doesn't appear to be able to support my
complex calculation (Sum(AVE)/Sum(Amt))
My connection string etc works - But the SQL string is rejected error.
Basically the query reads as follows:
TRANSFORM (Sum([Ave])/Sum([Amt])) AS EXP1
SELECT [Deal Type], Subbranch, Ccy
FROM [Group Data$]
GROUP BY [Deal Type], Subbranch, Ccy
PIVOT Sheet;
I could build this in Access (as I know it works there) but I've started in
Excel and I thought ADO could handle this.
however I get an error message saying
"Jet engine does not recognise the field name sheet" (abreviated version)
Any help would be much appreciated.
Kind Regards
Rob