我的查询代码:
begin
if edit1.Text='' then
showmessage('请入图书证号')
else
begin F_DM.Cds_clsoder.Close;
F_DM.Cds_clsoder.CommandText:='select * from clsoder where class_master='+edit1.Text;
F_DM.Cds_clsoder.Execute;
F_DM.Cds_clsoder.Open;
F_DM.Cds_clsoder.Refresh;
end;
end;
查询结果出错提示:project client.exe raise exception class EOleException with message '列名'11225'无效'。process stop....
无法查到当图书证号为:11225时所有的对应记录。请高手指点。谢谢!
begin
if edit1.Text='' then
showmessage('请入图书证号')
else
begin F_DM.Cds_clsoder.Close;
F_DM.Cds_clsoder.CommandText:='select * from clsoder where class_master='+edit1.Text;
F_DM.Cds_clsoder.Execute;
F_DM.Cds_clsoder.Open;
F_DM.Cds_clsoder.Refresh;
end;
end;
查询结果出错提示:project client.exe raise exception class EOleException with message '列名'11225'无效'。process stop....
无法查到当图书证号为:11225时所有的对应记录。请高手指点。谢谢!
解决方案 »
- 怎样屏蔽编辑框Edit中的输入法,或者让编辑框的输入法始终是英文的,在线等
- 请教:写了一个小程序,要用到事务回滚。谁能帮忙,谢谢!!!
- 通过inputbox输入指定的文字,监控文字?
- 在线苦等,谢谢高人近来指教
- 100分求助:dxTL.dcu 是属于哪个控件包,那里提供下载
- delphi 中 的触发器 删除数据出错误!!!
- 如何才能在最短的时间内将有10万条记录的数据集中的数据全部插入数组?不胜感激!!!!
- ***************TwwDBComboBox汉字输入存在问题,哪位高手知道如何解决,或者提供线索?*************
- 誰知道:Script RedLof.htm是什么病毒?(在线)
- 怎样获得dbgrid的行焦点,急!!!
- 求 idUDPServer和idUDPClient在居域网里传文件的例子
- fastreport 分组打印很容易实现,但如果字段太多,一行放不完该如何处理
F_DM.Cds_clsoder.Open;只用下面那句就可以了吧 。
我要求是当在Edit1.text中输入图书证号时,在DBgrid中显示出与图书证号相对应的所有记录。
F_DM.Cds_clsoder.Execute;
F_DM.Cds_clsoder.Open;
也一样出错,怎么办?十分感谢!
F_DM.Cds_clsoder.CommandText:='select * from clsoder where class_master='
+ QuotedStr(edit1.Text);
F_DM.Cds_clsoder.CommandText:='select * from clsoder where class_master='''+edit1.Text+'''';
F_DM.Cds_clsoder.CommandText:='select * from clsoder where class_master='
+ '''' + edit1.Text + '''' ;