IIf()公式太复杂,无法运行查询 - 运行时错误 [英] IIf() formula too complex to run query - runtime error

查看:69
本文介绍了IIf()公式太复杂,无法运行查询 - 运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Access数据库中有一个查询,当我尝试运行它时,我收到一条错误消息查询太复杂而无法运行。运行时错误3360.问题在于一个公式/编程逻辑,见下文:


以前的公式如下 - 它有效。

I have a query in Access Database and when I try to run it, I get an error message "query is too complex to run." Runtime error 3360." The problem is with one formula / programming logic, see below:

Previously the formula was the below - and it worked.

展开 | 选择 | Wrap | 行号

推荐答案

我无法看到问题是什么,但有一些提示这可能有所帮助。


我建议你把Nz围绕你的每个领域。

我建议你把公式复制到笔记本上(它更容易读取)然后将每个条件块设置在一个单独的行上。

检查每行的包围。 EG

I can''t see off hand what the problem is, but a few tips which may help.

I suggest you put Nz round each of your fields.
I suggest you copy the formula to notebook (it''s easier to read) then set each block of conditions on a separate line.
Check the bracketing round each line. E.G

展开 | 选择 | Wrap | 行号


你会发布查询的整个SQL吗?

您可能已经遇到了一些连接限制,SQL的长度,WHERE子句的长度等....

(这里有一个这样的情况,这个错误可以弹出来
在Access 2007中运行查询时出现错误消息:系统资源超过或者查询过于复杂
Would you post the entire SQL for the query?
You may have ran into some limitations for joins, length of SQL, length of WHERE clause etc....
(here''s one such situation where this error can pop-up
Error message when you run a query in Access 2007: "System Resource Exceeded" or "Query is too complex")


也许您会发现使用 Switch()函数而不是多个 IIf() s。
Perhaps you''d find the whole equation simpler to express using the Switch() function instead of multiple IIf()s.


这篇关于IIf()公式太复杂,无法运行查询 - 运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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