It is a built-in macro the wizard made:
SelectObject Form, QUOTES_DIRTGLUE, No
GoToRecord Form, QUOTES_DIRTGLUE, Next,
The weird thing is it works properly if I recreate the buttons, but after saving and closing, after reopening the form it starts scrolling through the subform again.