with query3 do
begin
query3.Close;
query3.SQL.Clear;
query3.sql.add('Update 库存 set shuliang=shuliang+:shuliangs where wupin=:wupins');
query3.parameters.ParamByName('wupins').value:=DBLookupComboBox7.Text;
query3.parameters.ParamByName('shuliangs').value:=strtoint(edit5.Text);
query3.ExecSQL;
query3.Close;
button5.Enabled:= false;
showmessage('添加原有库存成功!');
end;我想更新这个数据但出错。
(query3是TADOquery)提示:Project Project1.exe raised exception class EAccessviolation with message 'Access violation at address 1F487CAB in module 'msado15.dll'.write of address 06C9A018 '.Process stopped. Use Step or Run to continue.
begin
query3.Close;
query3.SQL.Clear;
query3.sql.add('Update 库存 set shuliang=shuliang+:shuliangs where wupin=:wupins');
query3.parameters.ParamByName('wupins').value:=DBLookupComboBox7.Text;
query3.parameters.ParamByName('shuliangs').value:=strtoint(edit5.Text);
query3.ExecSQL;
query3.Close;
button5.Enabled:= false;
showmessage('添加原有库存成功!');
end;我想更新这个数据但出错。
(query3是TADOquery)提示:Project Project1.exe raised exception class EAccessviolation with message 'Access violation at address 1F487CAB in module 'msado15.dll'.write of address 06C9A018 '.Process stopped. Use Step or Run to continue.
解决方案 »
- 讨论 获得win api函数地址的另类方法!!
- QuickReport 预览打印后 界面不能关闭?
- Delphi组件怎样在C++Builder下使用?(应该不难)
- 紧急呼救
- delphi+sql 问题 *——* 不够在加分!!
- 如何根据一个表中的字段去更新另一个表中的数据?
- 谁有Delphi第三方控件(II)光盘的安装序列号?
- 新建一个工程,不输入任何代码编译,显示fatal error?为什么???
- 如何把 BMP 转成 GIF ?速度越快越好。最好是用流方式的。代码越小越好。
- formqiqiqiqiqiqiqiqiqiqqqq
- 求助SQL语句,变态的数据!!!!!!!!!!!!!!!!!!
- 请教!Delphi的ADOQuery查询参数设置问题,在线等待。。。
+?
+'有问题
应该为'Update 库存 set shuliang=:shuliangs‘...