Kod: Tümünü seç
query1:paremeter '03.07.2005' not found.
sabrınız ve yardımlarınız için çok teşekkür ederim hocam.
Kod: Tümünü seç
query1:paremeter '03.07.2005' not found.
Kod: Tümünü seç
sql:='select * from emlak where tarih between '':TARIH1'' and '':TARIH2'' and ( ';
Kod: Tümünü seç
var
sql,sql2:string;
tarih1,tarih2:tdate;
begin
form47.query1.sql.Clear;
tARIH1:=(DateTimePicker1.date);
TARIH2:=(DateTimePicker2.date);
sql:='select * from emlak where TARIH between '':TARIH1'' and '':TARIH2'' and (';
if form46.CheckBox1.Checked then sql:= sql+ ' or durum=''kiralandı ev''';
if form46.CheckBox2.Checked then sql:= sql+ ' or durum=''kiralandı dükkan''';
if form46.CheckBox3.Checked then sql:= sql+ ' or durum=''satıldı ev''';
if form46.CheckBox1.Checked or form46.CheckBox2.Checked or form46.CheckBox3.Checked then sql:= sql+ ' )';
form47.query1.sql.add(sql);
form47.Query1.ParamByName ('tarih1').AsDate:= Tarih1;
form47.Query1.ParamByName('tarih2').Asdate := tarih2;
form47.query1.open;
FORM47.Quickrep1.preview;
end;