|
Publicité ' | |||||||||||||||||||||||
|
|
#1 | ||
|
Débutant
Inscription : octobre 2004 Messages : 432 ![]() |
Bonjour,
J'aimerais ajouter "TOUS" à ma zone de liste déroulante dont le contenu est : Code :
Code :
SELECT " TOUS","*" FROM [tbl_openamounts] UNION select [tbl_openamounts].[Invoice adresse name],[tbl_openamounts].[Invoice adresse ID] FROM [tbl_openamounts] UNION select [tbl_openamounts].[Invoice adresse ID], [tbl_openamounts].[Customer ID] FROM [tbl_openamounts] GROUP BY tbl_openamounts.[Invoice addressee name], tbl_openamounts.[Invoice addressee ID], tbl_openamounts.[Customer ID] HAVING (((tbl_openamounts.[Customer ID])=[Forms].[frm_openamounts]![Customer ID])); |
||
|
|
00
|
|
|
#2 | ||
|
Expert Confirmé Sénior
![]() ![]() Fabien Enseignant Inscription : janvier 2009 Messages : 2 415 ![]() |
bonsoir lucas-18,
concernant la 1ère requête, le GROUP BY...HAVING... est bien inutile dans ce contexte. On peut la simplifier en écrivant: Code sql :
Concernant la 2ème requête, tu as une ressource dans la FAQ: Ajouter Tous en haut d'une liste déroulante
__________________
L'informatique fait son grand retour au lycée... |
||
|
00
|
Copyright © 2000-2012 - www.developpez.com