替代背部颜色奇怪地工作 [英] Alternate Back Colour working strangely

查看:71
本文介绍了替代背部颜色奇怪地工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

alternate_back_colour_problem.png


大家好,另一天另一个查询!


我根据查询生成了一个报告,该查询生成了自上次报告以来已添加到数据库的所有文件的列表产生的。这些文件已存放在现实生活中的盒子中。问题在于细节的交替背面颜色。我希望它会交替报告的每一行,但是它会交替显示每个框中的每一行并重置为原始背面颜色以换取新框(有意义吗?)


Aka(看到附件)​​我希望它会变成白色,灰色,白色,灰色等等整个文件,但它反过来了:

盒子16白色,灰色,白色,灰色

方框17白色

方框18白色,灰色




alternate_back_colour_problem.png

Hi all, another day another query!

I have made a report based on a query that produces a list of all the files that have been added to the database since the last report was produced. The files have been stored away in boxes in real life. The problem is with the alternate back color of the detail. I was hoping it would alternate each row of the report, however it alternates each row in each box and resets to the original back colour for a new box (make sense?)

Aka (see attachment) I was hoping it would go white, grey, white, grey etc. for the whole document but instead it goes:
Box 16 white, grey, white, grey
Box 17 white
Box 18 white, grey

I''m hoping there''s a simple fix but all help is appreciated!

推荐答案

David,


不幸的是,这就是Alternate着色的工作原理....
David,

Underfortunately, that is how the Alternate coloring works....


自己控制它并不是那么难。下面是一些示例代码,每次打印GroupHeader时都会交替颜色:


将此全局声明放在报表模块的顶部:
It''s not really that hard to control this yourself. Here is some example code that alternates color every time the GroupHeader is printed:

Put this Global declaration at the top of the Report Module:
展开 < span class =codeDivider> | 选择 | Wrap | Line数字


我试着把它放在组头标题绘画部分中,但是它没有用。在几个地方尝试之后,它最终在Detail_Format事件中工作,但它现在完美地工作。再次感谢您的帮助,这个论坛是最好的!
I tried putting this in the group header paint section as you said but it didn''t work. After trying it in a few places, it finally worked in the Detail_Format event but it works perfectly now. Thanks for all your help again, this forum is the best!


这篇关于替代背部颜色奇怪地工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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