Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vba 联接表达式中的语法错误_Vba_Ms Access - Fatal编程技术网

Vba 联接表达式中的语法错误

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" 然而,我在连接操作中收到了类似语法错误的错误 有人能帮忙吗?提前谢谢

我想根据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"
然而,我在连接操作中收到了类似语法错误的错误


有人能帮忙吗?提前谢谢

Access SQL不支持没有限定符的JOIN关键字。正如你所发现的

... Table1 JOIN Table2 ...
将产生语法错误。你需要使用

... Table1 INNER JOIN Table2 ...

在access中,您应该使用内部联接,而不是JoinJoin。谢谢您的帮助。