salam
d'habitude j'utilise le code pour créer des paramètres sur mes SQL comme suite :
ça marche très bien, mais dernièrement j'ai remarquer une propriété qui s’appelle paramètre comme par hasard sur mon composant adoquery .
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 with ado do begin sql.Clear ; sql.Add('SELECT tempsdefaults.Date1,tempsdefaults.num_post'); sql.Add('FROM tempsdefaults'); sql.Add('WHERE (tempsdefaults.Date1=:lll )AND(tempsdefaults.num_post=:333 );'); with Parameters.ParamByName('lll') do begin DataType := ftDate; Direction := pdInput; Value := StrToDate(date1.Caption); end; with Parameters.ParamByName('333') do begin DataType := ftstring; Direction := pdInput; Value :=P.EditValue; end; Open;
alors j'ai essayer d'ajouter un paramètre comme suite :
et voici mon sql :
mais malheureusement ça n'a pas marcher j'aimerai bien apprendre cette méthode .merci d'avance.
Partager