salut
pour les string il faut quoter(") la variable
@+ Phil
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 procedure Tgestionparis.Button1Click(Sender: TObject); begin with dm.queryExe do begin sql.clear; sql.add('update tparticiper set'); SQL.Add('idcheval=(select idcheval from tchevaux where nomcheval="'+(listechevaux.text)+'")'); sql.add(',numattribue='+(enum.text)); SQL.add('where idcourse='+dm.tParticiper.fieldbyname('idcourse').asstring); showmessage(sql.text); execsql; end; end;
Partager