编辑数据库时出现运行时错误 [英] Run-Time error when editing Database
本文介绍了编辑数据库时出现运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行此代码来更新我的数据库时
展开 | 选择 | Wrap | 行号
解决方案
< blockquote class =post_quotes>
当我运行此代码来更新我的数据库时
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号
您需要调试此代码并让它逐行运行,直到您收到错误。然后,至少,您将知道哪个语句导致了问题。
对不起,我忘了陈述。错误来自第一行
AdVehDecp.Execute StrSql
不要引用我这个,因为我无法在我的主机上检查它。但你在哪里使用
AdVehDecp.Execute StrSql
试试这个
AdVehDecp.Execute StrSql ,AdCmdText。
ADO不是我的大事,但每当我使用执行命令时,我就举例说明
set rs = AdVehDecp。执行(StrSql,,AdCmdText)
或
AdVehDecp.Execute StrSql ,, AdCmdText
只是一个建议,
亲切的问候
Devon。
When I run this code to update my database
Expand|Select|Wrap|Line Numbers解决方案When I run this code to update my database
Expand|Select|Wrap|Line Numbers
Hi you need to debug this code and let it run line by line until you get the error. Then, at least, you will know which statement is causing the problem.Sorry, I forgot to state that. The error was coming from the first line of
AdVehDecp.Execute StrSql
Dont quote me on this, as i cant check it as imnot on my main machine. but whereyou are using
AdVehDecp.Execute StrSql
try this
AdVehDecp.Execute StrSql, , AdCmdText.
ADO isnt my big thing, but whenever i use the execute command i put for example
set rs = AdVehDecp.Execute(StrSql, , AdCmdText)
or
AdVehDecp.Execute StrSql, , AdCmdText
just a suggestion,
Kind Regards
Devon.
这篇关于编辑数据库时出现运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆