SQL到VBA无法正常工作 [英] SQL to VBA not working

查看:91
本文介绍了SQL到VBA无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不确定我错过了什么。需要第二双眼睛。我有一个工作正常的更新查询,将更新大约40行。当我把它移到VBA时......没有运气。 0记录。我搞砸了什么?

SQL

Not sure what I am missing. Need a second pair of eyes on this. I have an update query that is working fine and will update about 40 rows. When I move this over to VBA... no luck. 0 Records. What did I mess up?

SQL

展开 | 选择 | Wrap | 行号

推荐答案

尝试使用单引号来描述字符串。标准是单引号,但访问查询构建器将接受两者,而任何其他SQL引擎通常都不会。
Try using single quotes to delineate strings. The standard is single quotes but the access query builder will accept both whereas any other SQL engine usually doesn''t.


感谢Rabbit!不幸的是,结果没有变化。它仍然不匹配任何记录。
Thanks Rabbit! Unfortunately no change in results. It still isn''t matching any records.


可能尝试删除所有的括号。你不需要它们,Access真的被它们带走了。
Might try removing all the Parenthesis. You don''t need them and Access really gets carried away with them.


这篇关于SQL到VBA无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆