Bopnjour,
voici mon probleme , j'utilise une requettte pour rechercher un montant ttc d'une facture à zero, seulement l'exé m'envoie le message d'erreur suivnat :
Parametres CDE_MTTTC non trouvés, voici le code:
Merci pour votre aide!!!
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
20
21
22
23
24
25
26
27
28 DMTactile.NewQry(Qry); with qry do begin if active then close; SQL.Clear; SQL.add ('select ENTETES_RESA.CDE_ACTIF,ENTETES_RESA.CDE_NBNUITS, ENTETES_RESA.CDE_MTTTC, ENTETES_RESA.CDE_DATARRIV'); SQL.add ('from ENTETES_RESA '); SQL.Add('where CDE_MTTTC=''0'' '); //or CDE_MTTTC is null _mtttc:=ParamByName('CDE_MTTTC').Value; nbnuits:=FieldByName('CDE_NBNUITS').Value; //ParambyName('CDE_MTTTC').Asinteger:=_mtttc; //ParamByName(' CDE_NBNUITS').Asinteger:=nbnuits; Open; if (_mtttc=0) or (inttostr(_mtttc) = null ) then if(strtoint(s)=nbnuits) then DMTactile.NewQry(Qry2); with qry2 do begin if active then close; SQL.Clear; SQL.Add('update ENTETES_RESA '); SQL.Add('set CDE_ACTIF= ''O'' '); SQL.Add('Where CDE_NBNUITS = strtoint(s)'); close; end; DMTactile.DestroyQRY(Qry); DMTactile.DestroyQRY(Qry2); end;![]()






Répondre avec citation












Partager