Jointure Plusieurs Tables VBA Excel Access

Fermé
Kenbellezen - 25 mai 2012 à 18:04
 Kenbellezen - 25 mai 2012 à 18:15
Bonjour,



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

...
Merci bcp , je galère
A voir également:

1 réponse

alors tu fait un double clic sur affichage tu sectionnelle le mot fermer toutes jointures non quadrillé et le tour et joué
0
Kenbellezen
25 mai 2012 à 18:15
je n'ai pas bien compris

vous pensez que c'est un problème de parenthèse?

ma syntaxe est juste?
0