Access 仅导出查询的第一列
全部 - 我很尴尬地问一些看起来如此基本的问题,但我被困住了。
我使用 Access 2007 对单个 84K 行表运行查询,生成约 80K 行的结果集。我无法将结果集复制/粘贴到 Excel 中(Access 无法复制/粘贴 > 64K 行)。当我右键单击查询并导出时,无论我尝试什么格式,它都只导出第一行(ID)。
如何获得 Access 来导出整个结果集? (我尝试突出显示所有内容等。我还尝试使用“外部数据”功能区,但这只是导出原始表,而不是我运行的查询的结果集。)
谢谢!
All -
I'm embarrassed to ask something that appears to be so rudimentary, but I'm stuck.
Using Access 2007, I ran a query against a single 84K row table to produce a result set of ~80K row. I can't copy/paste the result set into Excel (Access fails copy/pasting > 64K rows). When I right-click on the query and export, no matter what format I try, it only exports the first row (ID).
How can I get Access to export the entire result set? (I've tried highlighting everything, etc. I also tried using the 'External Data' ribbon, but that just exports the original table, not the result set from the query I ran.)
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我运行了一个查询,通过单击左上角的小箭头、CTRL-C、打开的 Excel、CTRL-V 突出显示了所有内容。全部导出了。 (当然我没有像你一样有大约 100k 行,但我不明白为什么它也不能处理这个问题。)
或者这不是你想要的?
I ran a query, highlighted everything by clicking on the little arrow in the upper left, CTRL-C, opened Excel, CTRL-V. Exported the whole thing. (Granted I didn't have ~100k rows like you, but I don't understand why it wouldn't handle that too.)
Or is that not what you want?
如果您一次将 40,000 行复制到 Excel 文件中的不同选项卡会怎样?
What if you copy 40,000 rows at a time to different tabs in your Excel file?
我在 Access 2013 中遇到了类似的问题,因此决定分享如何解决它。我解决这个问题的唯一方法是使用 VBA。
仅更新
testSQL
(当您转到查询的 SQL 视图时很容易看到)和CSV_file_path
(CSV 导出的文件路径)I have had a similar problem with Access 2013, so decided to share how to resolve it. The only way I could solve this issue was by using VBA.
Only update
testSQL
(easy to see when you go to SQL view of your query) andCSV_file_path
(the file path of your CSV export)