Hi there<BR>I'm wanting to fill a table from a DB based on however many items are to be viewed. Thing is I want to list only 4 items in a row and then go to the next line, thus automatically create a new table row and fill the cells until EOF. If there is e.g. 7 items it should write the first 4, create a new row and write the next 3 and preferably insert an nbsp or something in the last cell as there isn't an entry. I experimented with moving the movenext and loop but it clearly doesn't work. Any thoughts ?