GoToRecord on a subform

P

Peter K

Example:
DoCmd.GoToRecord acDataForm, "Employees", acGoTo, 7

How do I refer to a subform object in GoToRecord method. What should
"Employees" read?
 
K

Ken Snell

You first need to set the focus to the subform and then run the
DoCmd.GoToRecord action.
 

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