jared what are you telling me ? what order by has to do with what i want ... i take all my records that director of table = director of textbox
Let me try to repeat. When the user clicks the "next record" button, do you want the entire page to reload, or not? This is a pivotal question. I was working from the assumption that you did want the entire page to reload. In that case you would want to make sure the database opens in the same order every time so you could be sure which record was supposed to be "next". Just pull up the data for the record you want, then check the index for the next record. So say you are reading record 15 and the next record with the same director is 27, the button could just say [HTML]<a href="samePage.asp?record=27">next record</a>[/HTML] If you don't want the entire page to reload, then you have an easier problem. Tie your film details db field into a hidden text box with your datagrid. When the user clicks the "next" button, execute some simple javascript to hide the last record, and show the next.