Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I have found your site brilliant. What makes it good are the people that contribute to the site..."

Geography

Where in the world do Tek-Tips members come from?
Carenne (Programmer)
26 Sep 00 4:30
I have a form with several fields which I would like the users to be able to easily toggle back and forth as to whether they want to automatically tab there or not during the data entry, without having to go into design mode to change the settings. Can I do this with controls on the form somehow?
jagilman (Programmer)
2 Oct 00 12:26
If I understand you, the action you need to accomplish is only restricted to this form. Lets say you have 10 fields on the form, 6 of them are the most common ones to deal with. The other 4 only get used in certain instances. I use this approach in one of my forms. The user hits ( Alt+M ) if they need to get into the other 4 fields. By using the form Key Down Event I trap the Alt+M key strokes and use code to set the TabStop property to True for the fields you want to enable tabbing into. The form current event is used to turn off this feature.

Private Sub Form_Current()
    Me.YourFieldName.TabStop = False
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    'trap the hot keys for extended form field access
    If KeyCode = 77 And Shift = acAltMask Then
        Me.YourFieldName.TabStop = True
    End If
End Sub

John A. Gilman
gms@uslink.net

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!

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