子报告在主报告中放置时更改值 [英] Sub Report Changes Values When Placed in Main Report

查看:73
本文介绍了子报告在主报告中放置时更改值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Access 2010中,我有一个简单的子报告,用于计算字段。完美的作品本身。但是,当
我把它放在主报告中时,结果会发生变化。无论我将它放在主报告中的哪个位置,它仍然会返回一个低计数。我缺少一些过滤器吗?




谢谢

推荐答案

在Access 2010中,我有一个简单的子报告,我用它来算一个字段。完美的作品本身。但是,当我将它放在主报告中时结果发生变化,
。无论我将它放在主报告中的哪个位置,它仍然会返回一个低计数。我缺少一些过滤器吗?


In Access 2010 I have a simple sub-report I use to count a field. Works perfect by itself. However, when I place it in the main report the results change. And it doesn't matter where I place it in the Main report, it still returns a low count. Is there some filter I am missing?

当您将其作为子报表放置时,如果Access自动设置链接主字段和链接子项,我不会感到惊讶子报表控件的字段属性,用于按主报表中的字段对其进行过滤。 当您在
拥有的子报表上显示子报表,而不是在另一个报表上显示子报表时,不会进行此类过滤。 您是否检查了主窗体上子报表控件的属性,以查看是否已设置链接主/子字段? 也许您不希望将此子报表与
链接到主报表上的记录。 如果是,请清除"链接主字段"和"链接子字段"属性。

When you place it as a subreport, I wouldn't be surprised if Access automatically sets the Link Master Fields and Link Child Fields properties of the subreport control to filter it by a field in the main report.  When you display the subreport on its own, not as a subreport on another report, no such filtering would take place.  Have you checked the properties of the subreport control on the main form to see if the Link Master/Child Fields have been set?  Maybe you don't want this subreport to be linked to a record on the main report.  If so, clear the Link Master Fields and Link Child Fields properties.


这篇关于子报告在主报告中放置时更改值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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