问一个关于ADOQuery连视图的问题
procedure TFormjcsz.FormCreate(Sender: TObject);
begin
ADOQuery1.Connection:=DataModule1.ADOConnection1;
ADOQuery2.Connection:=DataModule1.ADOConnection1;
//ADOTable2.TableName:='VIEWKinds';
end;
procedure TFormjcsz.ShowModal();
begin
ADOQuery1.Active:=True;
ADOQuery2.Active:=True;
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('select ComSort from VIEWKinds');
try
ADOQuery1.Open;
except
ADOQuery1.ExecSQL;
end;
//ADOTable3.Active:=True;
Formjcsz.Show;
end;
请问上面这段代码出了什么问题,为什么我每次打开这个界面都会出现
Missing SQL Property