Good Morning all,
I'm having a problem with one part of my query. It seems to work fine but when it print my report, no data on it. It is surely cause by the date criteria cause if I change it to a single Date >="" it work.
I have attached the sfilter result.
Thanks in advance.
'This is calculating to have only the week before, this is working
dtDebut = DateAdd("d", -(DatePart("w", DATE, vbMonday) + 7 + (7 * nbrWeek)), DATE)
dtFin = DateAdd("d", -(DatePart("w", DATE, vbMonday)), DATE)
Do Until rs.EOF = True
NO_JOB = !NO_JOB
sfilter = "[No_Job]=" & !NO_JOB & " AND [DATE]>=" & dtDebut & " AND [DATE]<=" & dtFin
stDocName = "rpt_Temps Job Particulier sans critere"
DoCmd.OpenReport stDocName, acViewNormal, , sfilter