Vba 联接表达式中的语法错误
我想根据cutoffnormal中的columnBoxc、Sites值更新sched表 我的问题是:Vba 联接表达式中的语法错误,vba,ms-access,Vba,Ms Access,我想根据cutoffnormal中的columnBoxc、Sites值更新sched表 我的问题是: oCm.CommandText = "update (sched join cutoffnormal on sched.Box = cutoffnormal.Boxc and sched.Site=cutoffnormal.Sites) set sched.Cutoff_Time = cutoffnormal.Cutoff" 然而,我在连接操作中收到了类似语法错误的错误 有人能帮忙吗?提前谢谢
oCm.CommandText = "update (sched join cutoffnormal on sched.Box = cutoffnormal.Boxc and sched.Site=cutoffnormal.Sites) set sched.Cutoff_Time = cutoffnormal.Cutoff"
然而,我在连接操作中收到了类似语法错误的错误
有人能帮忙吗?提前谢谢 Access SQL不支持没有限定符的JOIN关键字。正如你所发现的
... Table1 JOIN Table2 ...
将产生语法错误。你需要使用
... Table1 INNER JOIN Table2 ...
在access中,您应该使用内部联接,而不是JoinJoin。谢谢您的帮助。