水晶报表组/记录选择问题
好吧,我正在从头开始制作第一份报告,所以我对此还很陌生。我有一份包含我正在处理的子报表的报表。该子报表仅使用一个表中的数据。现在我有一个组标题/详细信息/组页脚,它从表格中的每一行放在单独的行上...我在不同的标题/详细信息部分周围设置了一个框,这样它就形成了一个带有每条记录之间有一行。
我需要设置另一个详细信息部分,它根据我选择的标准拆分记录。假设数据库中有一个字段叫order,它的范围是1-7。我将如何确保仅介于 1-4 之间的记录位于当前删除所有记录的第一组中,然后将其余 5-7 放入另一个相同的详细信息部分?我是否会在组选择中使用组选择公式?如果是,我将如何定义它和两个不同的部分,以便每个部分都知道要使用该表中的哪些记录?
Ok I'm making my first report from scratch so I'm fairly new to this. I have a report with a subreport I'm working in. This subreport only uses data from one table. Right now I have a group header/details/group footer where it drops in each row from the table on a separate row...I have it set up with a box around the different header/details sections so it forms a grid with a line in between each record.
I need to set up another details section where it splits up the records based on a criteria I choose. Say there is a database field called order and it is from 1-7. How would I go about making sure the records that are only in between say 1-4 are in this first group where it is currently dropping all the records, and then put the rest 5-7 in another identical details section? Would I use a group selection formula in the group selection and if so how would I define it and the two different sections so each one knows which records to use from that table?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用具有两个相同组部分的抑制公式。在第一个上,抑制公式将在
order >= 5
时启动,因此 5、6、7 行被隐藏。在另一种情况下,您可以使用 orderorder < 5
因此,当顺序为 1,2,3,4 时,第二部分将被隐藏。这会重复两个部分中的报告逻辑,但确实会产生拆分两个部分的效果。
You could use a supression formula, with two identical group sections. On the first one, the supression formula would kick in for
order >= 5
, so the 5,6,7 rows are hidden. In the other, you'd useorder < 5
so this second section is hidden when order is 1,2,3,4.That duplicates the report logic in the two sections, but does give the effect of splitting up the two sections.