What is the proper syntax for setting this string equal to this sql statement?
Dim SumofBusTEUS As String
SumofBusTEUS = "SELECT Sum(tblTestData.SumOfTEUS) AS SumOfSumOfTEUS"
FROM tblTestData WHERE tblTestData.#BUSRULE Is Not Null);"
I can run this query seperate and it returns 1 lone value. However when i write it in VBA it gives me a compile error stating expected : end of statement at the WHERE clause.
Help?!?