j'ai un soucis avec ma requête si vous pouvez m'aider svp
j'ai une jointure avec plusieurs tables et apparemment j'ai un problème avec la syntaxe de la jointure puisque VBA me retourne une erreur de type "Nombre d'arguments incorrect ou affectation de propriété incorrecte"
voila ma requete si vous pouvez me dire ou est le HIC
...
Set Rs = New ADODB.Recordset
With Rs
.ActiveConnection = cnn
.Open "SELECT departementCentre.nom, employe.nom, [type_materiel].[nom_type], materiel.designation, materiel.nserie, affectation.[date_affectation] FROM DepartementCentre
INNER JOIN Employe ON (DepartementCentre.[id_dep]=employe.[id_depart_ctr])
INNER JOIN affectation ON (employe.[id_emp]=affectation.[id_emp])
INNER JOIN Materiel ON (affectation.[id_mat]=materiel.[id_mat])
INNER JOIN TypeMateriel ON (materiel.type=typemateriel.[id_type])
WHERE ( departementCentre.nom = ('" & UserForm5.ComboBox1.Text & "') ) ;", cnn _
, , adOpenStatic, adLockOptimistic, adCmdText
25 mai 2012 à 18:15
vous pensez que c'est un problème de parenthèse?
ma syntaxe est juste?