SQL Math in Excel VBA
Posted
by Scott
on Stack Overflow
See other posts from Stack Overflow
or by Scott
Published on 2010-04-09T17:38:05Z
Indexed on
2010/04/09
17:43 UTC
Read the original article
Hit count: 152
Excel seems to have a problem with doing math in SQL queries.
SELECT (
SELECT sum(column) FROM table1
) + (
SELECT sum(column) FROM table2
) AS total
This technique works completely fine in ASP and ASP.NET. Has anyone had success doing this in Excel VBA? (My database engine is SQL Server 2000.)
© Stack Overflow or respective owner