This seems wrong to me : > if rs("Price")<> "" then you should probably be doing something like : dim dblPrice dblPrice = CDbl(rs("Price")) if (dblPrice <comparison...>) then Maybe thats causing the problem.... HTH ashok ------ Ashok Hariharan http://www.unganisha.org ------