查看完整版本: VB里如何用ADODC执行Delete * from TableName

twy1392336 2008-10-10 01:27

VB里如何用ADODC执行Delete * from TableName

,请教?

Nothing 2008-10-10 09:11

Dim conn As ADODB.Connection
conn.ConnectionString = Adodc1.ConnectionString
conn.Open
conn.Execute "delete from tablename"

注意没有*

twy1392336 2008-10-26 16:55

还是报错.

实时错误'91',
对象变量或WITH块变量未设置

'是不是还有哪没设好吗?

Nothing 2008-10-26 22:10

是的,看看参数有没有正确

twy1392336 2008-10-27 00:20

OK啦,谢NOTHING

Nothing 2008-10-27 21:06

:lol :lol
页: [1]
查看完整版本: VB里如何用ADODC执行Delete * from TableName