F=PARENTFORM.THIS
ITEMS=F:TABLES:REQUEST_CHARGE.THIS
ITEMS.ORDER_EXPRESSION=""
ITEMS.FILTER_EXPRESSION="REQ_HDR=TRIM(VAR->COLOR2).AND.SUB_CLASS='PROBLEM'"
ITEMS.QUERY()

the above routine work for me.

But what if there are no record that match the condition.
I get warning "record number is past end of table".

Is there a way to add a counter to count the record.
if rec_count=0 then end

Your suggestion is greatly appreciated

Ken Tjia