General information
Category:
Forms & Form designer
Hi Nancy.
As you can see I had to change this.value to a function call where I passed the field name like you suggested.
thisform.grid1.SetAll("DynamicForeColor", "f_color(sex)", "Column")
You are making this much more difficult than it needs to be < s >. I assume that the grid's RecordSource has a field in it named 'Sex'. Let us assume that the RecordSource is pulls its data from an Alias called 'MyAlias'. Just put this expression in the DynamicForeColor property of the column that has MyAlias.Sex as its ControlSource:
IIF( ALLTRIM( MyAlias.Sex ) == 'Female', RGB( 255, 0, 0 ), RGB( 0, 0, 0 ) )
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only