Jumping to new record

R

Rudi

Hi

I have a form (subform) within another form (main form). My main form is
linked with records in a table. I want to let the records move to the next
record each time I press a button on the subform using the command:

DoCmd.RunCommand acCmdRecordsGoToNew

This command seems to work when I use it in the main form for the records in
the main form, but it doesn't seem to influence the records linked to the
main form when this function is inserted into the subform. How do I correct
this?

Thanks!
 
S

Steve Schapel

Rudi,

Try it like this...
DoCmd.GoToRecord acDataForm, Me.Parent.Name, acNext
 
Top