Quelqu'un pourrait m'expliquer ça ?
[code]
Select Case UBound(strKeyword)
Case 0
rs.Open "select * from all_pages where keywords like '%" & strKeyword(0) & "%' order by mydate desc", con, adOpenForwardOnly, adLockReadOnly, adCmdText
Case 1
rs.Open "select * from all_pages where keywords like '%" & strKeyword(0) & "%' and keywords like '%" & strKeyword(1) & "%' order by mydate desc", con
Case 2
rs.Open "select * from all_pages where keywords like '%" & strKeyword(0) & "%' and keywords like '%" & strKeyword(1) & "%' and keywords like '%" & strKeyword(2) & "%' order by mydate desc", con
Case Else
rs.Open "select * from all_pages where keywords like '%" & strKeyword(0) & "%' and keywords like '%" & strKeyword(1) & "%' and keywords like '%" & strKeyword(2) & "%' order by mydate desc", con
End Select
Merci à vous
Ps la seule variable récupérée est "strKeyword" avant le traitement précedent.