Hi
Method 1...
-----------
Select the textBox (the textbox in the grid controlling your values) and add the code in Refresh event of that text box...
This.ForeColor = ;
IIF(This.Value < 0, RGB(255,0,0), RGB(0,0,255))
The above will get fired when ever there is a refresh of this text box, or of the form, or of the pageframe. The result will be, the amount will get displayed in Blue else it will be red.
Method 2:
---------
To achieve the same, you can put in the...
init event of the form.... the following code..
With ThisForm.MyPageFrame.myTextBox
.DynamicForeColor=IIF(.Value<0,RGB(255,0,0),RGB(0,0,255))
ENDWITH
Hope these help you
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK
