Subform focus on Add

E

Ed Finley

I have an "on current" event on a main form setting the focus on a field in
a subform. How would I cause it to set the focus on the bottom of the
records in the blank add record field? In other words I want to have the
subform as if oppend with the "acAdd" parameter.
Thanks,
Ed
 
K

Ken Snell \(MVP\)

After you have set focus to that control in the subform, run one more code
step:

DoCmd.RunCommand acCmdRecordsGoToNew
 
E

Ed Finley

That did it. Thanks.
Ed
Ken Snell (MVP) said:
After you have set focus to that control in the subform, run one more code
step:

DoCmd.RunCommand acCmdRecordsGoToNew
 

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