I used your sample code to page the out put to five and ten records. But now I want to display one record per page. When I changed appropriate variables, it is getting all the records in the recrodset, displaying the latest one, showing the next button but clicking of next button yields the same(latest) page. How do I display one record per page?<BR>Please help.<BR>Arvind