Alright i am trying to create a query in Microsoft Access 2000. The query i want to create is to sum up all of the hours for a specific time period. It works fine, but the hours are huge. I found the problem, i was debugging in the SQL Server Query Analyzer and i found that i needed to place a distinct in my 'sum' clause. Like this:
Select sum(distinct e.hours_actual), p.date_start
From e, p
group by p
Now this works perfectly, in query analyzer. But an error comes up saying that there is a missing operator in the select clause, in Access. But it works fine in SQL Server. Why doesn't this work in Acces? Any ideas on how to fix this problem? Thanks in advance.
-Ryan
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.
Select sum(distinct e.hours_actual), p.date_start
From e, p
group by p
Now this works perfectly, in query analyzer. But an error comes up saying that there is a missing operator in the select clause, in Access. But it works fine in SQL Server. Why doesn't this work in Acces? Any ideas on how to fix this problem? Thanks in advance.
-Ryan
One Ring to Rule Them All, One Ring to Find Them, One Ring to Bring Them All, and in the Darkness Bind Them.