Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query does not run ? 1

Status
Not open for further replies.

ItIsHardToProgram

Technical User
Mar 28, 2006
946
CA
When processing the following query access freezes and then closes.

SELECT tblTimeSheet.IdProjet, sum(tblTimeSheet.Lundi+tblTimeSheet.Mardi+tblTimeSheet.
Mercredi+tblTimeSheet.Jeudi+tblTimeSheet.Vendredi+
tblTimeSheet.Samedi+tblTimeSheet.Dimanche+tblTimeSheet.
LundiRD+tblTimeSheet.MardiRD+tblTimeSheet.MercrediRD+
tblTimeSheet.JeudiRD+tblTimeSheet.VendrediRD+tblTimeSheet.
SamediRD+tblTimeSheet.DimancheRD) AS TotalTemps;

There are currently less then 2000 entries in each column.

The data is numbers only (supposedly, thats what Im trying to find out). The column is set on numbers only, doubles with decimals, max of 2 decimals.

Why can't access process it, it should be really fast?

I can process innerjoin with group by with the same selection

Any idea why this does not work ?

"Knowing that you know is the greatest sign of stupidity, knowing that you are ignorant is the best proof of intelligence."
 
Your query lacks the FROM and GROUP BY clauses.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I realize it is necessery, I don't know where my head was, thank you.

"Knowing that you know is the greatest sign of stupidity, knowing that you are ignorant is the best proof of intelligence.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top