A
asia_w
Unregistered / Unconfirmed
GUEST, unregistred user!
我想实现从任意表(这里是a01)中选取符合条件的属性显示,我想把他设为参数做,可我这样写出现access violation at address00000000
程序如下:
t:=simpledataset1.Fields[0];
simpledataset1.Active:=false;
simpledataset1.DataSet.CommandText:='select * from a01 where a0102=:a0102';
simpledataset1.Params.ParseSQL(simpledataset1.DataSet.CommandText,true);
simpledataset1.Params.ParamByName('a0102').AssignField(t);
simpledataset1.Active:=true;
请高手指点!!!!
程序如下:
t:=simpledataset1.Fields[0];
simpledataset1.Active:=false;
simpledataset1.DataSet.CommandText:='select * from a01 where a0102=:a0102';
simpledataset1.Params.ParseSQL(simpledataset1.DataSet.CommandText,true);
simpledataset1.Params.ParamByName('a0102').AssignField(t);
simpledataset1.Active:=true;
请高手指点!!!!