得到了一個帶有OnNewRecord事件的ADOQuery。 關於程序我嘗試添加數據automaticaly到另一個表。數據是幾行,在取消的情況下需要在clientDataSet中處理。 at the loc OtherAdoQuery.insert; 我得到的錯誤是,ADOQuery無法將null插入到非空字段中。我處於插入模式,但我從不要求DELPHI發佈!我不明白爲什麼它發佈。 編輯:你能幫
我如何使用2 Tadoquery並像Tadoquery(主)Tadotable(細節)一樣工作! var tempvar : Variant;
begin
Edit1.text:=Ano.value;
Begin
with Ano_planeamento do //Laço de consulta por codigo
Begin
我在Delphi 7和Oracle中使用ADOQuery。在將參數傳遞給ADOQuery時出現錯誤。我已經使用了以下行。請幫助我確定錯誤。 ADOQuery.Sql.text:= 'select * from temp_table '+
'where column1 in (select column from table2 where id=:id) and id=:id';
AD
我目前對這個問題感到困惑。我可以從我的表中插入和刪除記錄,但我無法更新某些字段。它在0.5秒後恢復更改之前暫時更新它,我在身體上看到了更改。順便說一句,這是在Delphi 7完成: CloseDatabase; // Closes my database first to prevent an error from accessing one that is already open
Open