Jointure Plusieurs Tables VBA Excel Access
Kenbellezen
-
Kenbellezen -
Kenbellezen -
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
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:
- Jointure Plusieurs Tables VBA Excel Access
- Liste déroulante excel - Guide
- Formule moyenne excel plusieurs colonnes - Guide
- Word et excel gratuit - Guide
- Classer par ordre alphabétique excel plusieurs colonnes - Guide
- Formule excel pour additionner plusieurs cellules - Guide
vous pensez que c'est un problème de parenthèse?
ma syntaxe est juste?