FILTRAGE MULTIPLE D'UNE BASE DE DONNEES A PLUSIEURS COLONNES AU MÊME TEMPS
fbalien
Messages postés251Date d'inscriptiondimanche 7 décembre 2003StatutMembreDernière intervention11 novembre 2016
-
19 févr. 2007 à 09:53
cs_abdenour123
Messages postés17Date d'inscriptionlundi 21 janvier 2008StatutMembreDernière intervention29 mai 2009
-
29 mai 2009 à 12:58
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.
cs_abdenour123
Messages postés17Date d'inscriptionlundi 21 janvier 2008StatutMembreDernière intervention29 mai 2009 29 mai 2009 à 12:58
with ADOQuery1 do
begin//*
SChamps:=suiComboBox2.Text;
Active:=false;
SQL.Text:='Select * From Client'+' where '+
SChamps+'Like"%'+FiltreValeur.Text+'%"'+'
and Nom Like"%'+Edit1.Text+'%"' ;
and ...
and....
and....
ADOQuery1.Open;
en 2 ligne.
kimlion1
Messages postés7Date d'inscriptionmardi 9 septembre 2008StatutMembreDernière intervention 9 janvier 2009 9 janv. 2009 à 12:25
merci pour votre effort, il y a des gens comme moi qui n'ont jamais posé quoi que ce soit.
bonne continuation
kamel
gigabyte
Messages postés21Date d'inscriptionvendredi 19 janvier 2007StatutMembreDernière intervention18 octobre 2015 19 oct. 2008 à 21:39
il est bien ,en parallel il est un ptt long.merci qmm.continu.
jackalunion
Messages postés128Date d'inscriptionmercredi 8 janvier 2003StatutMembreDernière intervention14 juillet 2008 24 juin 2008 à 04:25
trés long
HAFTARIFOUAD
Messages postés256Date d'inscriptionmercredi 5 septembre 2007StatutMembreDernière intervention 6 janvier 2011 20 déc. 2007 à 13:02
Bonjour;
ben c du bon travail...
je vous invite de voir mes sources déposées sur le site, vous aller découvrir l'importance de language SQL dans les options filtre et le Tri
bon courage et bonne chance. ;-)
toufik_tfk
Messages postés3Date d'inscriptionmardi 26 juin 2007StatutMembreDernière intervention27 juin 2007 27 juin 2007 à 15:07
Merci monsieu mihoubi
rabi yahafdek
frsof
Messages postés18Date d'inscriptionmardi 7 septembre 2004StatutMembreDernière intervention 3 décembre 2008 21 févr. 2007 à 20:59
Tu a fait un grand effort, tous ce programme que tu peu le resume tous simplement dans une petit requete avec sql
yvessimon
Messages postés637Date d'inscriptionmardi 22 avril 2003StatutMembreDernière intervention 9 janvier 2017 19 févr. 2007 à 10:05
Bonjour,
Regarde avec le langage SQL
Avec DBGrid il est possible de filtrer par ordre alphabétique.
Salutations
fbalien
Messages postés251Date d'inscriptiondimanche 7 décembre 2003StatutMembreDernière intervention11 novembre 2016 19 févr. 2007 à 09:56
même chose pour les autre tests pour 3 2 et 1 champ
fbalien
Messages postés251Date d'inscriptiondimanche 7 décembre 2003StatutMembreDernière intervention11 novembre 2016 19 févr. 2007 à 09:53
Bonjour
toute cette partie
//******************************************
# if e4='' then if e1='' then if e2='' then if e3='' then T.Filtered:=false;
# if e4='' then if e1='' then if e3='' then if e2='' then T.Filtered:=false;
# if e4='' then if e2='' then if e1='' then if e3='' then T.Filtered:=false;
# if e4='' then if e2='' then if e3='' then if e1='' then T.Filtered:=false;
# if e4='' then if e3='' then if e1='' then if e2='' then T.Filtered:=false;
# if e4='' then if e3='' then if e2='' then if e1='' then T.Filtered:=false;
# if e1='' then if e4='' then if e2='' then if e3='' then T.Filtered:=false;
# if e1='' then if e4='' then if e3='' then if e2='' then T.Filtered:=false;
# if e1='' then if e2='' then if e4='' then if e3='' then T.Filtered:=false;
# if e1='' then if e2='' then if e3='' then if e4='' then T.Filtered:=false;
# if e1='' then if e3='' then if e4='' then if e2='' then T.Filtered:=false;
# if e1='' then if e3='' then if e2='' then if e4='' then T.Filtered:=false;
# if e2='' then if e1='' then if e4='' then if e3='' then T.Filtered:=false;
# if e2='' then if e1='' then if e3='' then if e4='' then T.Filtered:=false;
# if e2='' then if e4='' then if e1='' then if e3='' then T.Filtered:=false;
# if e2='' then if e4='' then if e3='' then if e1='' then T.Filtered:=false;
# if e2='' then if e3='' then if e1='' then if e4='' then T.Filtered:=false;
# if e2='' then if e3='' then if e4='' then if e1='' then T.Filtered:=false;
# if e3='' then if e1='' then if e2='' then if e4='' then T.Filtered:=false;
# if e3='' then if e1='' then if e4='' then if e2='' then T.Filtered:=false;
# if e3='' then if e2='' then if e1='' then if e4='' then T.Filtered:=false;
# if e3='' then if e2='' then if e4='' then if e1='' then T.Filtered:=false;
# if e3='' then if e4='' then if e1='' then if e2='' then T.Filtered:=false;
# if e3='' then if e4='' then if e2='' then if e1='' then T.Filtered:=false;
// *******************************
devrait pouvoir ce simplifer comme ceci
T.Filtered :=not( (e1='') and (e2='') and (e3='') and (e4=''))
29 mai 2009 à 12:58
begin//*
SChamps:=suiComboBox2.Text;
Active:=false;
SQL.Text:='Select * From Client'+' where '+
SChamps+'Like"%'+FiltreValeur.Text+'%"'+'
and Nom Like"%'+Edit1.Text+'%"' ;
and ...
and....
and....
ADOQuery1.Open;
en 2 ligne.
9 janv. 2009 à 12:25
bonne continuation
kamel
19 oct. 2008 à 21:39
24 juin 2008 à 04:25
20 déc. 2007 à 13:02
ben c du bon travail...
je vous invite de voir mes sources déposées sur le site, vous aller découvrir l'importance de language SQL dans les options filtre et le Tri
bon courage et bonne chance. ;-)
27 juin 2007 à 15:07
rabi yahafdek
21 févr. 2007 à 20:59
19 févr. 2007 à 10:05
Regarde avec le langage SQL
Avec DBGrid il est possible de filtrer par ordre alphabétique.
Salutations
19 févr. 2007 à 09:56
19 févr. 2007 à 09:53
toute cette partie
//******************************************
# if e4='' then if e1='' then if e2='' then if e3='' then T.Filtered:=false;
# if e4='' then if e1='' then if e3='' then if e2='' then T.Filtered:=false;
# if e4='' then if e2='' then if e1='' then if e3='' then T.Filtered:=false;
# if e4='' then if e2='' then if e3='' then if e1='' then T.Filtered:=false;
# if e4='' then if e3='' then if e1='' then if e2='' then T.Filtered:=false;
# if e4='' then if e3='' then if e2='' then if e1='' then T.Filtered:=false;
# if e1='' then if e4='' then if e2='' then if e3='' then T.Filtered:=false;
# if e1='' then if e4='' then if e3='' then if e2='' then T.Filtered:=false;
# if e1='' then if e2='' then if e4='' then if e3='' then T.Filtered:=false;
# if e1='' then if e2='' then if e3='' then if e4='' then T.Filtered:=false;
# if e1='' then if e3='' then if e4='' then if e2='' then T.Filtered:=false;
# if e1='' then if e3='' then if e2='' then if e4='' then T.Filtered:=false;
# if e2='' then if e1='' then if e4='' then if e3='' then T.Filtered:=false;
# if e2='' then if e1='' then if e3='' then if e4='' then T.Filtered:=false;
# if e2='' then if e4='' then if e1='' then if e3='' then T.Filtered:=false;
# if e2='' then if e4='' then if e3='' then if e1='' then T.Filtered:=false;
# if e2='' then if e3='' then if e1='' then if e4='' then T.Filtered:=false;
# if e2='' then if e3='' then if e4='' then if e1='' then T.Filtered:=false;
# if e3='' then if e1='' then if e2='' then if e4='' then T.Filtered:=false;
# if e3='' then if e1='' then if e4='' then if e2='' then T.Filtered:=false;
# if e3='' then if e2='' then if e1='' then if e4='' then T.Filtered:=false;
# if e3='' then if e2='' then if e4='' then if e1='' then T.Filtered:=false;
# if e3='' then if e4='' then if e1='' then if e2='' then T.Filtered:=false;
# if e3='' then if e4='' then if e2='' then if e1='' then T.Filtered:=false;
// *******************************
devrait pouvoir ce simplifer comme ceci
T.Filtered :=not( (e1='') and (e2='') and (e3='') and (e4=''))