Access 2013 - Setting multiple font colors in field on a form

时间:2016-04-04 18:06:31

标签: ms-access access-vba ms-access-2010 ms-access-2013

I'm fairly certain what I'm looking for can't be done. I have a form that users will input a list of data into. The data will be a list of steps that need to be completed. Currently the font is black, but they would like specify sentences to change color such as red, black, and green. The only thing I could think of would be conditional formatting, but that would affect all of the text and not just small portion of it.

Like I said, I don't think it's doable, but I figured I'd ask and see if anyone has tried this before.

2 个答案:

答案 0 :(得分:3)

自Access 2007起,您不需要单独的控件。您需要控件后面的备注(长文本)字段,并将字段的TextFormat属性和文本框设置为RichText

请参阅Insert or add a rich text field

它支持HTML的一个子集,包括字体颜色。 Access提供了在功能区和弹出菜单中(也可在Access运行时中使用)格式化文本的功能。

enter image description here

答案 1 :(得分:2)

您可以使用富文本控件。可以使用GUI应用颜色格式,也可以使用VBA自行编写颜色编码。

这取决于如何编辑数据。