Question on new entry

E

Ed Jr.

I have a form that everytime I hit the Next Record button, it goes to the
next entry but the active command stays on the Next Record button. So
meaning, if I was to hit enter again, it would just keep going to the next
record and the record after that and so on. I would like to make it so when
I tab through or enter info and I get to the next record button and I hit
enter, it would goto the next record but the active box would be the first
text box on the form insead of the next record button. How do I do that?
Thanks for your help!

Ed
 
F

fredg

I have a form that everytime I hit the Next Record button, it goes to the
next entry but the active command stays on the Next Record button. So
meaning, if I was to hit enter again, it would just keep going to the next
record and the record after that and so on. I would like to make it so when
I tab through or enter info and I get to the next record button and I hit
enter, it would goto the next record but the active box would be the first
text box on the form insead of the next record button. How do I do that?
Thanks for your help!

Ed

In the form's Current event:
[FirstControlName].SetFocus
 
K

Ken Snell

In the form's OnCurrent event, put this code (change name of textbox to real
name):

Private Sub Form_Current()
If Me.NewRecord = True Then Me.NameOfTextBox.SetFocus
End If
 

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