如果记录号是奇数,改变背景颜色? [英] change background color if record number is odd?

查看:69
本文介绍了如果记录号是奇数,改变背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个有点奇怪。但我想知道是否有可能应用某种条件格式,其中表单的背景颜色从一个记录更改为下一个记录。像奇数这样的东西可能是标准的灰色,偶数也可能是粉红色或类似的东西。


这是否可能?


谢谢!

解决方案


我知道这个有点奇怪。但我想知道是否有可能应用某种条件格式,其中表单的背景颜色从一个记录更改为下一个记录。像奇数这样的东西可能是标准的灰色,偶数也可能是粉红色或类似的东西。


这是否可能?


谢谢!



条件格式仅适用于包含文本框等值的活动控件。如果表格不连续,您可以将某些内容编码到即使是表格的当前状态,但是以连续的形式,它每次都会改变所有背景颜色。


Mary


正如玛丽所说,使用form_current


表格虽然没有背景颜色,但我觉得你无论如何都不能设置,但我可能错了:)


你可以为细节设置背景颜色

例如

展开 | 选择 | Wrap | 行号

如果你正在使用2003那么:
在报告中着色备用行

I know this one is kind of odd. But I was wondering if it were possible to apply some kind of conditional formatting where the background color of the form changes from one record to the next. Something like odd numbers could be the standard grey and even numbers could be pink or something like that.

Is this even possible?

thanks!

解决方案

I know this one is kind of odd. But I was wondering if it were possible to apply some kind of conditional formatting where the background color of the form changes from one record to the next. Something like odd numbers could be the standard grey and even numbers could be pink or something like that.

Is this even possible?

thanks!

conditional formatting will only work on active controls that contain values like textboxes. If the form is not continuous you could code something into the on current even of the form but in a continuous form it would change all the background colours each time.

Mary


As Mary says, use the form_current

Form doesnt have a background colour though, one I think u cant set anyway, though I could be wrong :)

U could set the backcolor for Detail
eg

Expand|Select|Wrap|Line Numbers


If you''re using 2003 then:
Shading alternate rows in reports


这篇关于如果记录号是奇数,改变背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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