Edit - Copy of original main post:
Base: Trying to navigate between records as described in Base Guide 6.4 page 361. oForm.next works fine but oForm.previous doesn’t. What am I doing wrong?
Sub Add_Section() 'Move to next record
Dim oDoc As Object
Dim oDrawpage As Object
Dim oForm As Object
oDoc = thisComponent
oDrawpage = oDoc.drawpage
oForm = oDrawpage.forms.getByName("frmData")
oForm.next 'This works
End Sub
Sub Remove_Section() 'Move to previous record
Dim oDoc As Object
Dim oDrawpage As Object
Dim oForm As Object
oDoc = thisComponent
oDrawpage = oDoc.drawpage
oForm = oDrawpage.forms.getByName("frmData")
oForm.previous 'This doesn't
End Sub
End editing for clarity - @Ratslinger