在设计过程中,我遇到一个问题,但就是找不到出错的地方,请大家帮我看看.在线等
procedure TF_stay.FormCreate(Sender: TObject);
begin
  ComboBox1.Text := '男';
  MaskEdit3.Text := '1.00';
  MonthCalendar1.Visible := False;
  Button1.Enabled := False;
  Button2.Enabled := False;  //检索空房
  with Query1 do
  begin
   if Active then Close;   SQL.Clear;
   SQL.Text:='select kfxx.fh,fjlx.fjlx,kfxx.lc,kfxx.cws,kfxx.bzj,kfxx.zdj,kfxx.bz';
   SQL.Text:='from kfxx, fjlx';
   SQL.Text:='where kfxx.xh=fjlx.xh and kfxx.ztdm='0'';
   //Query1.Active := True;
   Open;
  end;
end;error:missing operator or semicolon