主报告不允许子报告中的代码 [英] Main report not allowing code from subreport

查看:90
本文介绍了主报告不允许子报告中的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 8上使用Access 2013

我在打印事件的详细信息中有一个包含以下代码的子报表。

I am using Access 2013 on Windows 8

I have a subreport with the following code in the details on print event.

展开 | 选择 | Wrap | 行号

推荐答案

  1. 当报告被用作子报告,是否引用主表单上的 Txcountrecords txMaxStudent 控件?
  2. 当您声明时,您的意思是什么?
  1. When the Report is being used as a Sub-Report, is it referencing the Txcountrecords and txMaxStudent Controls on the Main Form?
  2. What do you mean exactly when you state

它不能在主报告中起作用。
It doesn''t work from the main report.

  • 当子报告作为子报告存在时是否没有空行?
  • 子报告是否与主报告相关联或独立于它?

  • 1。 Txcountrecords是一个txbox,用于计算子报表组中的记录(= count(*)),txMaxStudents是子报表数据源的字段。不,主要报告中都没有控制权。两者都在子报表的组头中。


    2.在主报表上 - 如果Txcountrecord = 1则显示1个空白。如果Txcountrecord => 1则没有空白显示。在这两种情况下,空白的数量都是不正确的。


    3.当子报告的打印预览独立打开时,它会显示适当的空白数量,这取决于Txcountrecord和txMaxStudent 。


    4.唯一的链接是使用字段coursenumber的2个报告之间的父子关系,也就是子报告的分组方式。
    1. Txcountrecords is a txbox that counts records (=count(*)) in the group of the subreport and txMaxStudents is a field of the data source of the subreport. No, neither control is on the main report. Both are in the group header of the subreport.

    2. When on the Main report - If Txcountrecord = 1 then 1 blank shows. If Txcountrecord = >1 then no blanks show. In both cases, the number of blanks is incorrect.

    3. When the print preview of the sub report is open independently it shows the proper number of blanks which varies depending on Txcountrecord and txMaxStudent.

    4. The only link is the parent child relationship between the 2 reports using the field coursenumber which is also how the sub report is grouped.


    我想象一下,当报告被用作父母< ==>的真实子报告时,问题是什么?基于 coursenumber 字段的子链接。无论子报告中的代码如何,只会显示与父报告中 coursenumber 匹配的记录。
    I would imagine what the problem is relates to the case when the Report is used as a true Sub-Report with a Parent <==> Child Link based on the coursenumber Field. Regardless of the Code in the Sub-Report, only those Records that match the coursenumber in the Parent Report will be displayed.


    这篇关于主报告不允许子报告中的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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