Hi all
I am trying to use a query in a vb app, that uses ADO. I have successfully created and executed the query in ms access. But when i try run the query from my VB code I get an ODBC error. The problem is (at least I think) the sum method. I am not sure if it is supported by ODBC and ADO.
Here is the SQL statement:
SELECT Seller, Sum(quantity*price) FROM transaction
WHERE AuctionName ='ttt' AND AuctionDate = '11/18/2002'
GROUP BY Seller
ORDER BY Sum(quantity*price) DESC;
If i take the Sum part out the query works but I obviously need it so is there any way of using the Sum method or another alternative.
thanx in advance.
I am trying to use a query in a vb app, that uses ADO. I have successfully created and executed the query in ms access. But when i try run the query from my VB code I get an ODBC error. The problem is (at least I think) the sum method. I am not sure if it is supported by ODBC and ADO.
Here is the SQL statement:
SELECT Seller, Sum(quantity*price) FROM transaction
WHERE AuctionName ='ttt' AND AuctionDate = '11/18/2002'
GROUP BY Seller
ORDER BY Sum(quantity*price) DESC;
If i take the Sum part out the query works but I obviously need it so is there any way of using the Sum method or another alternative.
thanx in advance.