该程序通过sql语句进行查询,运行时报错‘circule datalinks not allowed'该如何修改
begin
with datamodule2.Query1 do
begin
databasename:='laobao';
datasource:=datamodule2.renyuands;
close;
sql.Clear;
sql.add('select * from renyuan where bumenno=1');
open;
end;
with datamodule2.renyuanTable do
begin
{active:=true; }
databasename:='laobao';
tablename:='renyuan.db';
indexfieldnames:='zhigongno';
mastersource:=datamodule2.queryDS;
end;
begin
with datamodule2.Query1 do
begin
databasename:='laobao';
datasource:=datamodule2.renyuands;
close;
sql.Clear;
sql.add('select * from renyuan where bumenno=1');
open;
end;
with datamodule2.renyuanTable do
begin
{active:=true; }
databasename:='laobao';
tablename:='renyuan.db';
indexfieldnames:='zhigongno';
mastersource:=datamodule2.queryDS;
end;
解决方案 »
- 关于StringGrid的问题!
- 试用monthof(),yearof()函数遇到的问题?(Delphi初学,见笑了)
- delphi里面怎么差内存泄漏的问题
- 数据保存的方法
- 请教各位高手 怎样屏蔽掉Memo控件的键盘事件
- mdi背景,我的mdi 背景可以更换(可更换的放在一文件夹中,),可我怎么换回原来的?
- 字符串操作问题
- Bug!!!delphi6又现Bug!!!!!!!
- 我想在点击文件的右键里添加“Open with my program”该如何做啊?
- (特急,特刺激) 如何不显示开始菜单...
- shellexecute
- 为什么twebBrowser 中的 GoBack 当没法后退的时候会出错,怎样避免?谢谢
mastersource:=queryDS;//ok