Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying To Make ADO to Access Group By Partial Date
Message
From
02/12/2001 16:39:15
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
 
To
All
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Trying To Make ADO to Access Group By Partial Date
Miscellaneous
Thread ID:
00588539
Message ID:
00588539
Views:
64
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
Map
View

Click here to load this message in the networking platform