code you wrote works fine. Except it doesnot output the first size, however it does output price for that first size. Rest of the records outputs correctly. As you said you wrote the code w/o testing, on top off head, you came up with solution! Its amazaing. I always notice on the board, when you start posting reply to questions one after other with solution/explanation all questions(posts) get answered.<BR><BR>thanks millions!!