Access 2007 SP2/Access 2010 中的 UNION 查询失败,并出现错误 3360“查询太复杂”。在以前的版本中工作得很好。有解决办法吗?
我一直在使用一些简单的联合查询,在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
大约 6 个月前,我访问了 Allen Brown 的网站。在他的 Converting to Access 2007 中,他有一个论坛链接
http://www.pcreview.co.uk/forums/thread-3803279 -2.php
一种可以尝试的解决方法是在联合查询的开头执行 select *
前面,即选定的字段:
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: