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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing a single records color

Status
Not open for further replies.

bobsmallwood

Programmer
Aug 9, 2001
38
US
Is there a way to change the background color of a single record in a table based on the condition of one of the fields in the record. For example, could I change the background color of all the records in an address type table where the zip code is, say 60523, and leave the background color of all non-60523 records white?
 
Yes, but keep in mind the table must be contained in a form. On the zipcode field's "New Value" event add the following code

method new(var event Event)
do
if self.value="60523" then
self.color = yellow
else
self.color = white
endif

endMethod

Hope this helps
Perrin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top