How GoToRecord Next in Subform Table?

G

Guest

My main form uses one table, my subform uses another. They are not linked.
How do I write code for the main form that advances to the next record in the
subform table? Thanks.
 
G

Guest

If you mean that you would like to have a button on the main form that when
you click on it you'll move to the next record then write the following code

Me.SubFormName.SetFocus
DoCmd.GoToRecord , , acNext
 
G

Guest

I get an error mssg with the command
Me.UpdateAddrsSubform.SetFocus
The error says it can't do that. Any suggestion? Thanks.
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top