# Record Navigation

**URL:** <https://forum.servoy.com/t/record-navigation/8662>\
**Category:** Classic Servoy\
**Created:** [January 29, 2008, 2:47pm UTC](https://forum.servoy.com/t/record-navigation/8662 "2008-01-29T14:47:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ewanm](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@Ewanm](https://forum.servoy.com/u/Ewanm)\
**Post date:** [January 29, 2008, 2:47pm UTC](https://forum.servoy.com/t/record-navigation/8662/1 "2008-01-29T14:47:14Z")

</div>

Hi there, I’m new to Servoy and am currently checking it out. I have stumbled at my first hurdle. I am trying to create a button on a form to move to the next or previous record and can’t fid how to do this. Can anyone help with this simple problem?

Ewanm

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [January 29, 2008, 2:55pm UTC](https://forum.servoy.com/t/record-navigation/8662/2 "2008-01-29T14:55:00Z")

</div>

Hi Ewanm,

Welcome to the forum.

You can navigate through the records using the controller object like so:

```auto
var nCurrIndex = forms.yourformname.controller.getSelectedIndex();
forms.yourformname.controller.setSelectedIndex(nCurrIndex + 1);

```

This will get you to the next record.  
When you use a method on the forum itself you don’t have to tell it what form it has to use like so:

```auto
var nCurrIndex = controller.getSelectedIndex();
controller.setSelectedIndex(nCurrIndex + 1);

```

Hope this helps you further.

---

<div class="post-metadata">

**Author:** ![Ewanm](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@Ewanm](https://forum.servoy.com/u/Ewanm)\
**Post date:** [January 30, 2008, 7:49am UTC](https://forum.servoy.com/t/record-navigation/8662/3 "2008-01-30T07:49:12Z")

</div>

Robert,

Thanks for the reply, works great. As I said, I’m new to Servoy so I guess I will use the forum a lot to start off with.

Ewanm
