Solved Curser not going where I want (1 Viewer)

Umpire

Member
Local time
Yesterday, 20:09
Joined
Mar 24, 2020
Messages
120
I have a simple form I created using the form wizard that I use to enter part numbers. I added come control buttons to the form to close the form, see last record etc. I also added a Enter new part number button. When I click the button, the form clears and goes into entry mode as expected.

However, the curser stays on the button. I would like for the curser to go to the first field on the from. That way I can enter one record, click Add new Part Number and just start typing instead of having to stop and clink in the space for the Part Number.

I am sure there is some simple setting to do this but as an inexperienced user, I am not seeing it.

Thanks
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 20:09
Joined
Oct 29, 2018
Messages
21,453
Have you tried using GoToControl or SetFocus? It's not a setting, but a command.
 

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 23:09
Joined
May 21, 2018
Messages
8,525
Not sure what you are asking but if you right click in design view you can go to Tab Order. Then set your tab order. Also for most controls you can set the Tab Stop (yes, no). Select no if you do not want it to stop on the control.
 

missinglinq

AWF VIP
Local time
Yesterday, 23:09
Joined
Jun 20, 2003
Messages
6,423
Like theDBguy said...and use the command for finding if the Record is a New Record...like this:
Code:
Private Sub Form_Current()
 
 If Me.NewRecord Then
  PartNumber.SetFocus
 End If
 
End Sub
Linq 0):>
 

Umpire

Member
Local time
Yesterday, 20:09
Joined
Mar 24, 2020
Messages
120
Been Trying to post all day that theDBguy's suggestion worked great.
Finally it let me post.
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 20:09
Joined
Oct 29, 2018
Messages
21,453
Been Trying to post all day that theDBguy's suggestion worked great.
Finally it let me post.
Hi. Glad to hear you got it sorted out. Good luck with your project.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:09
Joined
May 7, 2009
Messages
19,231
everybody knows about this except you?
don't get left behind, read the manual before operating.
 

Umpire

Member
Local time
Yesterday, 20:09
Joined
Mar 24, 2020
Messages
120
everybody knows about this except you?
don't get left behind, read the manual before operating.
Show me a manual for Acess365 and I will read it.
And how did you originally find out about it? Let me guess, someone told you about it.
 

Isaac

Lifelong Learner
Local time
Yesterday, 20:09
Joined
Mar 14, 2017
Messages
8,774
Umpire, post #7 definitely does not speak for all of us and certainly not me. We all learned somewhere, and there is nothing that everybody knows. Post any time you need help or get stuck. Best of luck with your project!
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:09
Joined
May 7, 2009
Messages
19,231
you can read older version and still it will work.
 

Users who are viewing this thread

Top Bottom