I have problem to implement "short date" in format to sqlstring
(syntax)
what's wrong with my sqlstring? Ms Access shows me that is something wrong with "short date" part
(syntax)
what's wrong with my sqlstring? Ms Access shows me that is something wrong with "short date" part
Code:
strsqLy = "select datarozpoczecia, datazakonczenia from " & _
"tblPRocesyZleceniaSzczegoly inner join (tblZmianySzczegoly inner join tblZmiany on tblZmianySzczegoly.id_zmiany = tblZmiany.id_zmiany) " & _
"on tblProcesyZleceniaSzczegoly.pracownik = tblZmianySzczegoly.pracownik " & _
"where format(#datazmiany#, "short date")=#" & Format(#Now()#, "short date") & "# and nz(datarozpoczecia, 0)>" & 0 & " and nz(datazakonczenia, 0)=" & 0