>Is there any way to control the text color of fields in to detail band based on code?
Not the fields themselves, but you can overlap several fields with different text color and manipulate their Print When condition.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison