下面的简单查询返回运行时错误13.在互联网上做一个简单的检查,反馈似乎是我可能是MS Access中需要更新的某种类型的错误..是否可能?这种类型的查询我一次又一次地在它当前所在的同一个数据库中使用过。
st_Sql = "INSERT INTO tblCompetency05 ( CompetencyID ) SELECT tblCompetency03.ID FROM tblCompetency03 WHERE (((tblCompetency03.Flag)<>'OK'))"
Application.DoCmd.RunCommand (st_Sql)
答案 0 :(得分:0)
奇怪的是,这段代码似乎解决了我的问题,但从语法的角度来看,我仍然不明白为什么。
st_Sql = "INSERT INTO tblCompetency05 ( CompetencyID ) SELECT tblCompetency03.ID FROM tblCompetency03 WHERE [tblcompetency03].[Flag]<>'OK'"
Application.DoCmd.RunSQL (st_Sql)