There are two different forms.
One form is a pop-up form. .... A form
Another form has subforms. .... B form ( sub form is C )
When I click the button in the popup form, I need to move the record of the subform of another form to the next record.
I tried like this:
1. In the subform ... ( C form )
Public Sub next_record()
DoCmd.GoToRecord , , acNext
End Sub
2. In the A form (pop up) ...
Forms!A!C.form!id.SetFocus ( or DoCmd.GoToControl "id" )
Forms!A!C.form.next_record
But it doesn't work.
Can someone please tell me how to fix it.
I can also get a response by email. ( jeongmunhun@gmail.com )
One form is a pop-up form. .... A form
Another form has subforms. .... B form ( sub form is C )
When I click the button in the popup form, I need to move the record of the subform of another form to the next record.
I tried like this:
1. In the subform ... ( C form )
Public Sub next_record()
DoCmd.GoToRecord , , acNext
End Sub
2. In the A form (pop up) ...
Forms!A!C.form!id.SetFocus ( or DoCmd.GoToControl "id" )
Forms!A!C.form.next_record
But it doesn't work.
Can someone please tell me how to fix it.
I can also get a response by email. ( jeongmunhun@gmail.com )