i want to the back ground color of few records to change based on the value

for example i have a form in tabular form and 10 records are displayed

i want to change the background color of those reocrds where the deptno is 10 and i want this to happen when i execute query..

i tried all the ways but i cud'nt .....

i am able to do it..record by record..int eh when_new_record_instance tirgger..but not the other way around.

bob