I need help with this code
DoCmd.RunSQL "UPDATE CocheDivers SET Diver1 =" & div1 & ", Diver2=" & div2 & _
", Diver3=" & div3 & ", Diver4=" & div4 & _
" WHERE NumDossier=" & "'" & Me!NumDossier & "'" & _
" AND Critere=" & "'" & Me!Criteres1 & "'" & _
" AND DateRecu=" & Me!DateRecu
The criteria DateRecu is not working and I don't know how to fix the problem.
It's look like he can't compare the two dates.
DoCmd.RunSQL "UPDATE CocheDivers SET Diver1 =" & div1 & ", Diver2=" & div2 & _
", Diver3=" & div3 & ", Diver4=" & div4 & _
" WHERE NumDossier=" & "'" & Me!NumDossier & "'" & _
" AND Critere=" & "'" & Me!Criteres1 & "'" & _
" AND DateRecu=" & Me!DateRecu
The criteria DateRecu is not working and I don't know how to fix the problem.
It's look like he can't compare the two dates.