Docmd更新标准为数字的位置 [英] Docmd Update where criteria is Numeric

查看:70
本文介绍了Docmd更新标准为数字的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是新来的。我正在尝试更新表格。下面是VBA代码。

Hi,
I''m new to access. I''m trying to update a tables. Below is the VBA Code.

展开 | 选择 | Wrap | 行号

推荐答案

发布代码时请使用代码标签( [CODE /] 按钮)。


我能看到的一个错误是,一旦你将前两个部分连接在一起,你最终会得到
Please use code tags when posting code (the [CODE/] button).

One mistake that I can see is that once you concatenate the first two parts together you end up with
展开 | 选择 | Wrap | 行号


展开 < span class =codeDivider> | 选择 | Wrap | Line数字


发布代码时请使用代码标签。这非常重要!


你有Option Explicit set吗?它将位于您的模块的最顶层,第二行。我还注意到你还没有将WHERE子句与之前的代码分开所需的空间。


还有另一种从我喜欢使用的代码运行查询的方法,因为它告诉你SQL代码本身是否有问题。尝试复制并粘贴以下内容,看看它是否有效:
Please use code tags when posting code. This is very important!

Do you have Option Explicit set? It would be at the very top of your module, the second line. I also noticed that you still don''t have the space that you need to separate the WHERE clause from the code before it.

There is another way to run queries from code that I like to use as it tells you if there is a problem with the SQL code itself. Try copying and pasting the following and see if it works:
展开 | 选择 | Wrap | 行号


这篇关于Docmd更新标准为数字的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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