Conditional Formatting - Color of Field

Creating and using forms
Post Reply
lit31686
Posts: 20
Joined: Sat Oct 24, 2015 9:30 pm

Conditional Formatting - Color of Field

Post by lit31686 »

Hi all,

Is there a way have the color of a formatted field automatically change based on the value? Note, the value is a word not a number.

Thank you for your help.
OpenOffice 4.1.1 on Windows 7
User avatar
MTP
Volunteer
Posts: 1620
Joined: Mon Sep 10, 2012 7:31 pm
Location: Midwest USA

Re: Conditional Formatting - Color of Field

Post by MTP »

I have in the past made the value stored in the Base table be a number, and made the formatted field different colored text (different colors and different text) based on the number. Within OpenOffice, you can open the help file and go to "number format codes" to see the way to do this.

I'm not aware of any GUI way to change to the font color if the underlying table value is text, and not aware of any GUI way at all to change the background color. If the formatted field is standalone, this could be done with a macro, if you were interested in a programming way to do it. If the formatted field is inside a tablecontrol/gridcontrol, it is not possible to change the color of individual rows or columns - any formatting (aside from the number format codes) applies to the entire table.
OpenOffice 4.1.1 on Windows 10, HSQLDB 1.8 split database
Post Reply