ItIsHardToProgram
Technical User
I have the following SQL in a VBA code
The table creates correctly but
When I attemp to do a Group by with the table "TestSQL2" it does not let me, here is how I try grouping it
SELECT TestSQL2.No_projet2, TestSQL2.TotalH, TestSQL2.Nom, TestSQL2.Prenom, TestSQL2.no_emplo
FROM TestSQL2
Group By No_projet2;
Any one has any fast idea why it would not let me group it.... probably a general law but it evades me and I don't have my SQL help file with me =/ thx for your help
Code:
SelectEmp = no_emplo
DoCmd.RunSQL "SELECT JourFtemps.No_projet2, JourFtemps.descProjet, JourFtemps.TotalH, Emp.Nom, Emp.Prenom, JourFtemps.No_employ, Emp.no_emplo INTO TestSQL2" & _
" FROM Emp INNER JOIN JourFtemps ON Emp.no_emplo=JourFtemps.No_employ" & _
" WHERE (((JourFtemps.No_employ)=" & SelectEmp & "));"
The table creates correctly but
When I attemp to do a Group by with the table "TestSQL2" it does not let me, here is how I try grouping it
SELECT TestSQL2.No_projet2, TestSQL2.TotalH, TestSQL2.Nom, TestSQL2.Prenom, TestSQL2.no_emplo
FROM TestSQL2
Group By No_projet2;
Any one has any fast idea why it would not let me group it.... probably a general law but it evades me and I don't have my SQL help file with me =/ thx for your help