SETTING FOCUS!!!!!!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been banging my head against my desk most of the afternoon over this
one. All that I am trying to do is set focus to a new (blank) record on a
subform. However, every time I open the suform, instead of being focused on
the new record (which should be located below all of the others), it is
focused on the first record. Please, please help. Thanks.
 
Write this in the forms load event:

DoCmd.GoToRecord acDataForm, , acNewRec
 
On the subform's enter event:

DoCmd.GoToRecord , , acNewRec
Me!subFormName!FirstControlName.SetFocus
 

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

Similar Threads

set focus to subform 10
Close on Lost Focus 2
set focus 1
setting the Focus to the current record in a multiple record subfo 1
Set focus 1
Set Focus 2
Set Focus 3
Subform field focus 3

Back
Top