I read your article on paging through a database N records at a time. I'm having trouble using this when a WHERE clause is included. I tried putting the results in a temporary table. This works nicely the first time. However, if I do another search of the database, the results of the last search appear when I press the PREV and NEXT buttons. To display the correct results I have to press the refresh button. Is there a way I can refresh automatically using code? Or is this a cache problem?