我程式有这样一段
ADOQuery1.SQL.add( 'select * from 用户登录 where 用户名=luding');
但执行了这程式就会报EOleException出错。还有就是access参数不足
我想应该是这语句问题
ADOQuery1.SQL.add( 'select * from 用户登录 where 用户名="luding"');
改成这样也出错
我全程式在这procedure Tloginform.Button1Click(Sender: TObject);
begin
ADOQuery1.sql.clear;
ADOQuery1.SQL.add( 'select * from 用户登录 where 用户名=luding') ;
ADOQuery1.active:=true;
if ADOquery1.RecordCount >0 then
begin
Application.CreateForm(TKFruzhanForm, KFruzhanForm) ;
KFruzhanForm.show;
end
else
begin
messagedlg('用户名或密码错误!!',mtcustom,[mbok],0) ;
end;
end;
end.
ADOQuery1.SQL.add( 'select * from 用户登录 where 用户名=luding');
但执行了这程式就会报EOleException出错。还有就是access参数不足
我想应该是这语句问题
ADOQuery1.SQL.add( 'select * from 用户登录 where 用户名="luding"');
改成这样也出错
我全程式在这procedure Tloginform.Button1Click(Sender: TObject);
begin
ADOQuery1.sql.clear;
ADOQuery1.SQL.add( 'select * from 用户登录 where 用户名=luding') ;
ADOQuery1.active:=true;
if ADOquery1.RecordCount >0 then
begin
Application.CreateForm(TKFruzhanForm, KFruzhanForm) ;
KFruzhanForm.show;
end
else
begin
messagedlg('用户名或密码错误!!',mtcustom,[mbok],0) ;
end;
end;
end.
解决方案 »
- 线程里使用adoquery 释放的问题
- 控件属性问题
- 急,哪位高手帮帮我??感谢......
- 棘手问题,delphi从sql server 2000中调用数据的问题(着急,倾力奉献)
- 如何将整型数组转换为字符串?
- form2.edit2.text:=form1.edit1.text //这种方法是不是妥当
- FileStream.WriteBuffer(arXlsInteger,SizeOf(arXlsInteger))是什么意思?
- 请大侠指教:如何实现象PHOTOSHOP的魔术棒的功能?(内空)
- 怎么设置可以让一个程序只能打开一次,(既系统中只能同时运行该程序的一个例程)
- 如何取得Database的登陆密码?(小Case了,希不吝赐教)
- 数据统计
- 编译问题
ADOQuery1.SQL.add( 'select * from 用户登录 where 用户名='''+'luding'+'''');