为什么在尝试导出时会挂起此Microsoft Access报告?

时间:2014-09-09 06:33:23

标签: sql pdf report sharepoint-2013 ms-access-2013

我在Microsoft Access中创建了一个非常简单的报告。报告数据来自2个自定义SharePoint列表以及UserInfo表 - 这就是字段名称很长的原因。每当我运行SQL时,它会非常快速地返回结果 - 看似正确的结果。但是,每当我返回报表视图并尝试将其打印为PDF 将其导出为PDF 时,它都会挂起。 CPU钉住25%,(我认为是一个核心的完全使用),内存使用量只会增长和增长。今晚,当我做其他事情时,我让它运行了大约2个小时,但它没有完成。这真的是一种痛苦,当它不应该是。

我已经尝试将两者都设置为INNER JOINS,但没有运气。另外,如果我通过添加 WHERE 子句来限制结果,我有时可以使用它来打印结果。如果我使用第二个表 [创新挑战最终报名表] 中没有任何记录的ID,它将快速返回结果。但是,如果我将其限制为包含两个表中的条目的单个结果,则导出/打印将永远不会完成。

这是使用的SQL:

SELECT [Innovation Challenge].ID AS [Innovation Challenge_ID], 
[Innovation Challenge].[Create a name for your idea:], 
[Innovation Challenge].[Primary contact for your idea:], 
[Innovation Challenge].[Primary contact's group:], 
[Innovation Challenge].[Challenge question:], 
[Innovation Challenge].[Months to roll out:], 
[Innovation Challenge].[Idea Description ("What?")], 
[Innovation Challenge].[Reasons for Pursuit ("Why?")], 
[Innovation Challenge].[Notes:], 
[Innovation Challenge].[Coach you worked with:], 
[Innovation Challenge].[Do you want to be put in touch with other groups?], 
[Innovation Challenge].[If yes, please list the groups and explain:], 
[Innovation Challenge Final Entry Form].ID AS [Innovation Challenge Final Entry Form_ID],
[Innovation Challenge Final Entry Form].[What resources and capabilities do you need to implement your id], 
[Innovation Challenge Final Entry Form].[How much funding do you estimate you would need to develop and i], 
[Innovation Challenge Final Entry Form].[How confident are you in the likelihood of success?], 
[Innovation Challenge Final Entry Form].[Please provide rationale for your assessment of the likelihood o], 
[Innovation Challenge Final Entry Form].[Are there any significant risks (e#g#, operational, health, safe], 
[Innovation Challenge Final Entry Form].[If yes, please describe the potential risks:], 
[Innovation Challenge Final Entry Form].[What is the high-level impact?], 
[Innovation Challenge Final Entry Form].[Additional comments/notes, if needed:], 
[Innovation Challenge Final Entry Form].[Coach you worked with:], 
[Innovation Challenge Final Entry Form].[Is this submission complete?], 
[In

novation Challenge Final Entry Form] .RegistrationID,     UserInfo.Name AS [Innovation Challenge_Name],     UserInfo.ID,     [创新挑战]。附件,     [创新挑战最终报名表]。附件AS [附件_创新挑战最终报名表]     FROM([创新挑战] LEFT JOIN [创新挑战最终报名表] ON [创新挑战]。[ID] = [创新挑战最终报名表]。[RegistrationID])     INNER JOIN UserInfo ON [创新挑战]。[您的想法的主要联系方式:] = UserInfo。[ID];

非常感谢任何帮助!我没有想法!立即帮助将更加如此: - )

1 个答案:

答案 0 :(得分:0)

显然Microsoft Access与Bullet点不兼容。很多数据都包含了要点。我可以打印出没有的项目,但它会挂在包含项目符号的项目上。