I am having issues selecting from an MSSQL DB view from my ASP. I recieve the following error message:
Microsoft OLE DB Provider for ODBC Drivers error '80040e37'
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'w_sales_cust '.
/cco/syseng/eventhelp/EventHelpResults1.asp, line 359
My query is correct and if i switch back to the table the select works fine. I am using the following to select:
SELECT Company, consultantId, DataYear, DataMth, Class_Trade, SUM(Quantity) AS Total_Quantity, SUM(Sales_Amount) AS Total_Sales FROM w_sales_cust WHERE DataYear=" & Int(IntYear) & " and DataMth=" & Int(IntMonth) & " and consultantId=" & Int(ConsultantId) & " GROUP BY Class_Trade, Company, consultantId, DataYear, DataMth


(right side on this reply ) and agree

