General information
Category:
Database DAO/RDO/ODBC/ADO
Title:
Trying To Make ADO to Access Group By Partial Date
I have an Access 97 database that I connect to via ADO in VB. In Access I can do the following query syntax and it works:
SELECT Format([Actual_Class_Date],"mmm-yyyy") AS Class_Month, Sum(tblTransactions.Current_Charge) AS SumOfCurrent_Charge
FROM tblTransactions
GROUP BY Format([Actual_Class_Date],"mmm-yyyy");
However, in my ADO SQL statement this does not work. I know in SQL Server you can use the DATENAME function but I need to figure out a way to do it when talking to Access 97. Any suggestions?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only