1 2 3 4 5
| Abonnement.Query_Abo.sql.Add('Select Abobt_Nom, Abobt_Prenom, Abobt_Section, Abobt_Parcelle, Abobt_Ilot, Abobt_Rang, Abobt_Numpol#, Abobt_Clepol#, Abobt_Dateabo, Abobt_Tar, Abobt_DateSit from Gc.gc_Abonne');
Abonnement.Query_Abo.sql.Add('Where abobt_expl# = ' + QuotedStr(ExplEdit.text));
Abonnement.Query_Abo.sql.Add('And Abobt_Dateabo between to_date('+ QuotedStr(FormatDateTime('mm/dd/yyyy', DateTimePicker2.Date)));
Abonnement.Query_Abo.sql.Add('And to_date('+ QuotedStr(FormatDateTime('dd/mm/yyyy', DateTimePicker3.Date)));
Abonnement.Query_Abo.sql.Add('order by abobt_dateabo'); |