I have several thumbnail images that I want to display on a page at once. But I want to display one row of 5 images, then start a new <tr> then display the next 5, then another <tr> with the next 5, etc. until the end of the recordset. How can set my recordset loop so when it's get to 5 records it builds a new <tr> and then continues.<BR><BR>Basically displaying images in multiples of 5. If someone chooses to display 50 images at once instead of the default 20, then I need the code to understand to count in multiples of until it reaches 20.<BR><BR>Any help?