I have a working sql clasue based on the query QBas.It is the following”
strSales = “SELECT DISTINCTROW QBas.StudentID, QBas.CompanyName, Sum(QBas.Liters) AS ProductSales ” & _
” FROM QBas ” & _
” GROUP BY QBas.StudentID, QBas.CompanyName”
I want to base my first sql not on the query QBas, but on a second sql, so i converted the query QBas into an StrBas and tried to replace it
as follows:
strSales = “SELECT DISTINCTROW strBas.StudentID, strBas.CompanyName, Sum(strBas.Liters) AS ProductSales ” & _
” FROM strBas ” & _
” GROUP BY strBas.StudentID, strBas.CompanyName”
Me.RecordSource = strSales
But then i get the error message ” The Microsfot jet engine cant find STrBas”.May be i have to put some brackets?