Hi
I have this query that I would like to use DATENAME in, but I'm not sure if this function is supported in Access, I use this often in SQL server. But I can't get it to work in access.
This code give me this result...
WorkDate TimeSpent CustomerDescription
2005-02-28 5 Company 1
2005-03-01 2 Company 1
2005-03-02 0,15 Company 1
2005-03-03 2,35 Company 1
2005-03-03 5 Company 2
but I would like to have like this...
WorkDate TimeSpent CustomerDescription
February 5 Company 1
March 4,50 Company 1
March 5 Company 2
Is this possible, and if so how?
Regards
I have this query that I would like to use DATENAME in, but I'm not sure if this function is supported in Access, I use this often in SQL server. But I can't get it to work in access.
Code:
SELECT tbl_WorkHours.WorkDate, Sum(tbl_WorkHours.WorkTime) AS TimeSpent, tbl_Customer.CustomerDescription
FROM tbl_WorkHours INNER JOIN tbl_Customer ON tbl_WorkHours.CustomerID = tbl_Customer.CustomerID
GROUP BY tbl_WorkHours.WorkDate, tbl_Customer.CustomerDescription
HAVING (((tbl_WorkHours.WorkDate) Between #1/1/2005# And #5/25/2005#));
This code give me this result...
WorkDate TimeSpent CustomerDescription
2005-02-28 5 Company 1
2005-03-01 2 Company 1
2005-03-02 0,15 Company 1
2005-03-03 2,35 Company 1
2005-03-03 5 Company 2
but I would like to have like this...
WorkDate TimeSpent CustomerDescription
February 5 Company 1
March 4,50 Company 1
March 5 Company 2
Is this possible, and if so how?
Regards