Thanks Ted, i´ll try this, do you happen to know if the data i now have in the L_DURATION field is in seconds or some other format. According to the supplier of the odbc database (sybase) the field is seconds but when i try to divide it by 60 and 24 i get the wrong answers