Bonjour, j'avais créé une requête pour me donner des informations sur une liste de magasins:
1 2 3 4 5 6 7
|
TRANSFORM Last(definition_etat.nom_etat) AS LastOfnom_etat
SELECT magasin.nom_magasin
FROM tache INNER JOIN (magasin INNER JOIN (definition_etat INNER JOIN etat_tache ON definition_etat.id_etat = etat_tache.id_etat) ON magasin.id_magasin = etat_tache.id_magasin) ON tache.Id_tache = etat_tache.id_tache
GROUP BY magasin.numero_vague, magasin.nom_magasin
ORDER BY magasin.numero_vague
PIVOT tache.numero_tache; |
Désormais j'aimerais que cette requête ne donne que le résultat associé à un magasin sélectionné dans une combo box de formulaire.
J'ai essayé de mettre
WHERE magasin.id_magasin = Forms!MonForm!Macombo.Value
mais j'obtiens l'erreur
"The microsoft jet database engine does not recognize Forms!MonForm!Macombo.Value as a valid field name or expression.
J'ai essayé avec .Column(0) mais j'obtiens "undefined function Forms!MonForm!Macombo.Column" in expression
Partager