sqlstr:='update administrator set 密码='''+psw+''' where 姓名='''+name+'''';
adoquery1.Close;
adoquery1.Prepared:=true;
adoquery1.SQL.Clear;
adoquery1.SQL.Add(sqlstr);
adoquery1.ExecSQL;
showmessage('密码修改完成');
close;编译通过。运行,提示错误
access violation at address ******* in module 'msado15.dll' .write of address ********.
请问这是什么问题,应该如何解决?谢谢
adoquery1.Close;
adoquery1.Prepared:=true;
adoquery1.SQL.Clear;
adoquery1.SQL.Add(sqlstr);
adoquery1.ExecSQL;
showmessage('密码修改完成');
close;编译通过。运行,提示错误
access violation at address ******* in module 'msado15.dll' .write of address ********.
请问这是什么问题,应该如何解决?谢谢
try: ShowMessage(adoQuery.Sql.Text);
然后对话框跳出来的时候按ctrl+C把show出来的sql贴到别的地方exec一下有问题么?
把哪个prepared也去掉.
不行你用adocommand这个控件试试.