This query...
SQLs = "SELECT Nom, DateSam, Job,Di, Lu, Ma, Me, Je,Ve,Sa, Taux_Km FROM Data" & _
" WHERE [Data.DateSam] >=datevalue('" & DateDebut.Value & "') AND [Data.DateSam]<=" & _
"datevalue('" & DateFin.Value & "') AND [Data.Job] =" & Job.Value
... gives me this error:
Too few parameters,1 expected.
Is there somebody to help me to write the good syntax?
SQLs = "SELECT Nom, DateSam, Job,Di, Lu, Ma, Me, Je,Ve,Sa, Taux_Km FROM Data" & _
" WHERE [Data.DateSam] >=datevalue('" & DateDebut.Value & "') AND [Data.DateSam]<=" & _
"datevalue('" & DateFin.Value & "') AND [Data.Job] =" & Job.Value
... gives me this error:
Too few parameters,1 expected.
Is there somebody to help me to write the good syntax?