Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a Box to change Colors when a condition is met

Status
Not open for further replies.

terenceb

Programmer
Jun 10, 2003
77
US
Hi All,

I am pulling date from SQL tables on a Cashe database. I am writing with Crystal 8.5.

I need draw a box in a form, to be used as check box. When a condition is met I want the box to turn black. However when I draw the box and right click on it I only see "Format Box" which does not allow for formula input.
Any suggestions?
 
You can use a text object instead of drawing the box. Don't add any text and use the borders simulate a box.
You can then conditionally set the border color based upon your condition.

~Brian
 
A neat way is to use the WEBDINGs font.
Use "c" for a Open box and "g" for a closed box.
That way you can have a formula to change the box from open or closed.
i.e if condition1 then "c" else "g"
then specify the font to be webdings for that field.

Fred
P.S.
To have a look at the different symbols, goto to the control panel, Fonts, then pick a font to look at.
Webdings, Wingdings is a good start.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top