OVH Cloud OVH Cloud

Champ d'un formulaire inséré dans une requête

1 réponse
Avatar
Francis.beaulieu
J'ai une requ=EAte qui fait une s=E9lection avec un champ dans un
formulaire. Voici la Requ=EAte :

SELECT tblProblTech.Numero, tblProblTech.Type, tblProblTech.Titre,
tblProblTech.[No DDS], tblProblTech.Statut, tblProblTech.Priorit=E9,
tblDescription.Date, tblDescription.[Inscrit par],
tblDescription.Actions, tblEmploye.Pr=E9nom AS Pr=E9nom_D, tblEmploye.Nom
AS Nom_D, Formulaires!frmChoixListeProb!etiValeurChoisi.L=E9gende AS
Expr1
FROM tblProblTech INNER JOIN (tblEmploye INNER JOIN tblDescription ON
tblEmploye.Num=E9roEmploy=E9 =3D tblDescription.[Inscrit par]) ON
tblProblTech.Numero =3D tblDescription.Numero
WHERE (((tblProblTech.Statut) In
([Formulaires]![frmChoixListeProb]![etiValeurChoisi].[L=E9gende])));

Si j'ai seulement une valeur dans mon champs =E7a fonctionne, mais si
j'en ai plus, =E7a me donne rien.

Que faire? Quel format je dois donner =E0 la liste dans mon champ?

Merci

bye

1 réponse

Avatar
Raymond [mvp]
Bonjour.

le sql ne peut pas aller chercher dans une liste.
il faut que tu passes par une fonction public qui traitera le problème. tu
trouveras peut-être une idée avec la page:
http://officesystem.access.free.fr/ex_selection_multiple.htm

--
@+
Raymond Access MVP http://OfficeSystem.Access.free.fr/
Pour débuter sur le forum: http://www.mpfa.info/
Nouvelle base Access des communes françaises avec
longitude, latitude et 13246 sites internet officiels
http://ardecheearth.free.fr/basededonnees.htm


a écrit dans le message de news:

J'ai une requête qui fait une sélection avec un champ dans un
formulaire. Voici la Requête :

SELECT tblProblTech.Numero, tblProblTech.Type, tblProblTech.Titre,
tblProblTech.[No DDS], tblProblTech.Statut, tblProblTech.Priorité,
tblDescription.Date, tblDescription.[Inscrit par],
tblDescription.Actions, tblEmploye.Prénom AS Prénom_D, tblEmploye.Nom
AS Nom_D, Formulaires!frmChoixListeProb!etiValeurChoisi.Légende AS
Expr1
FROM tblProblTech INNER JOIN (tblEmploye INNER JOIN tblDescription ON
tblEmploye.NuméroEmployé = tblDescription.[Inscrit par]) ON
tblProblTech.Numero = tblDescription.Numero
WHERE (((tblProblTech.Statut) In
([Formulaires]![frmChoixListeProb]![etiValeurChoisi].[Légende])));

Si j'ai seulement une valeur dans mon champs ça fonctionne, mais si
j'en ai plus, ça me donne rien.

Que faire? Quel format je dois donner à la liste dans mon champ?

Merci

bye