Birinci kullanım şeklim
Kod: Tümünü seç
DM.SORGU_Q.Close;
// DM.SORGU_Q.SQL.Clear;
// DM.SORGU_Q.SQL.Text:='UPDATE musteriler SET musteriler.son_borc_tarih='+QuotedStr(DateToStr(EDIT_TARIH.DATE))+',musteriler.son_borc_turu='+QuotedStr('VERESİYE SATIŞ')+',musteriler.son_borc_miktar='+QuotedStr(CURR_SATIS_TOPLAM.Text)+' WHERE Id='+QuotedStr(DBText2.Caption)+' ';
// DM.SORGU_Q.ExecQuery;
// DM.SORGU_Q.Close;
// dm.musteri_Query.Open;
ikinci kullanımda ise ;
Kod: Tümünü seç
DM.SORGU_Q.Close;
// DM.SORGU_Q.SQL.Clear;
// DM.SORGU_Q.SQL.Text:='UPDATE musteriler SET musteriler.son_borc_tarih='+QuotedStr(DateToStr(EDIT_TARIH.DATE))+',musteriler.son_borc_turu='+QuotedStr('VERESİYE SATIŞ')+',musteriler.son_borc_miktar='+FloAtToStr(CURR_SATIS_TOPLAM.Value)+' WHERE Id='+QuotedStr(DBText2.Caption)+' ';
// DM.SORGU_Q.ExecQuery;
// DM.SORGU_Q.Close;
// dm.musteri_Query.Open;