×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How do you make the cursor move from top to bottom (text boxes)?

How do you make the cursor move from top to bottom (text boxes)?

How do you make the cursor move from top to bottom (text boxes)?

(OP)
I am working on a data entry program for a project, and don't know how to make the cursor move from the top text box downward. Any suggestions? Thanks!

RE: How do you make the cursor move from top to bottom (text boxes)?

you need to set your tab controles so that when they hit the Tab key the cursor moves form box to box 8)

RE: How do you make the cursor move from top to bottom (text boxes)?

Or you can go to the next text box when [ENTER] is pressed with...

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then SendKeys "{TAB}"
End Sub

There are only a few keyboard events you can't intercept and control. Have fun.

RE: How do you make the cursor move from top to bottom (text boxes)?

Lapomarc is correct but <grin> he/she forgot to mention that you have to set in TabIndex property on each screen field. This determines the order in which you move around the fields with the TAB key.

(Alt255 is quite right as well - given the TabIndex thing)

Mike
---
Mike_Lacey@Cargill.Com

RE: How do you make the cursor move from top to bottom (text boxes)?

I have to build data entry screens all the time as I work at a data warehouse. I like alt255's solution better and actually employ it a lot (vbKeyReturn) because in a data entry enviroment, using the mouse is shyed away from as it actually slows 'data entry personnel' down. Stick to the keypad if you can!

RE: How do you make the cursor move from top to bottom (text boxes)?

Quick tip.
Start with the last textbox and work backwards. Set each textbox's TabIndex property to 0 (zero) as you go. When you run your form the top textbox should have focus and each tab key (or enter as previously mentioned) should then take you to the next textbox in order.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close