Bonjour
j'ai ma condittion where qui me fait défaut
poste=3
Nposte=4
hab=2
nomprenom=monnommonprenom
je me perd dans l'expression: OU nomprénom=monnommonprenom and ( 2<poste<10 ou 2<Nposte<10)
str = "select Count (*) " & _
"From (select Nomprenom, P" & poste & ", P" & Nposte & " from [Grille polyvalence] " & _
" WHERE " & hab & "<=P" & poste & " and P" & poste & "< 10 " & _
"or " & hab & "<=P" & Nposte & " and P" & Nposte & " < 10" & _
"and Nomprenom='" & Cells(bcl1, bcl2).Value & "') "
Set rst = Nothing
rst.Open str, cnx
si quelqu'un a un avis?
Bien cordialement