What you should do is put it in a seperate sub called something like UpdateButtons.
I would remove your record selector buttons and add in your own controls - just create a command button and choose record navigation - you will need to add buttons for first, last, next and previous. In the code...