Access 2007 SP2/Access 2010 中的 UNION 查询失败,并出现错误 3360“查询太复杂”。在以前的版本中工作得很好。有解决办法吗?

发布于 2024-10-03 01:55:14 字数 350 浏览 0 评论 0原文

我一直在使用一些简单的联合查询,在 Access 2003 和 Access 2007 中都没有出现任何问题。使用 Access 2007 SP2/Access 2010,这些查询现在会失败,并显示错误 3360 查询太复杂,即使在不使用过滤器。 (操作系统无关紧要 - XP SP3 到 Win7 64 位上都有同样的问题)。相同的 .mdb 在早期系统上运行没有问题。这是怎么回事?

如果我将“UNION ALL”更改为“UNION”,则查询可以工作,但这不是可接受的解决方案,因为备注字段是查询输出的一部分并且将被截断。

是什么改变了破坏联合查询?解决办法是什么?

我宁愿仅将临时表用作最后的手段。

I've been using a few simple union queries with no problems in Access 2003 and then in Access 2007. With Access 2007 SP2/Access 2010, these queries now fail with error 3360 Query is too complex even when no filters are used. (OS doesn't matter - same problem on XP SP3 through Win7 64-bit). The same .mdb on earlier systems works without a problem. What's going on here?

If I change "UNION ALL" to just "UNION", the query works, but that's not an acceptable solution since a memo field is part of the query output and will be truncated.

What changed to break union queries? What is the fix?

I'd prefer to use temp tables only as a last resort.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

嘿嘿嘿 2024-10-10 01:55:14

大约 6 个月前,我访问了 Allen Brown 的网站。在他的 Converting to Access 2007 中,他有一个论坛链接
http://www.pcreview.co.uk/forums/thread-3803279 -2.php

一种可以尝试的解决方法是在联合查询的开头执行 select *
前面,即选定的字段:

SELECT qryUnion.*, qryUnion.FirstField, etc...

I ended up on Allen Brown's site about 6 months ago. On his Converting to Access 2007 he had a forum link to
http://www.pcreview.co.uk/forums/thread-3803279-2.php

One workaround to try is to do a select * at the beginning of the Union Query at the
front, i.e. with the selected fields:

SELECT qryUnion.*, qryUnion.FirstField, etc...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文