|
本帖最后由 宏魔法师 于 2009-8-6 08:41 编辑
原来新增语句是这样的:
sSQL = "insert into tblSample_List" _
& " select * from [查询结果$] IN '' [Excel 8.0;Database=" & Me.附件.Value & "] " _
& " where SampleCode not in (select SampleCode from tblSample_List)"
CurrentProject.Connection.Execute sSQL, nRowAffected
我想把上面的语句改成更新,结果就出错
sSQL = "UPDATE tblSample_List" _
& " set [查询结果$] IN '' [Excel 8.0;Database=" & Me.附件.Value & "] " _
& " where SampleCode IN (select SampleCode from tblSample_List)"
CurrentProject.Connection.Execute sSQL, nRowAffected
请高手帮忙看看,问题出在哪里? |
|