Link to home
Start Free TrialLog in
Avatar of Rads R
Rads RFlag for United States of America

asked on

How do I navigate automatically without using the tab key

I have a VBA application where I need to navigate from one field after the data is entered to another field automatically without using the tab key or the mouse ... help is greatly appreciated...! I tried with afterupdate trigger but not working and below is the code and also
exit trigger

Thanks
Radhs
Private Sub txtPartno_afterupdate()
 If Me.txtPartno.Value <> "" Then
      Me.txtLotNo.SetFocus
 End If
End Sub
=========
Private Sub txtPartno_Exit(Cancel As Integer)
If Me.txtPartno.Value <> "" Then
      Me.txtLotNo.SetFocus
   End If
End Sub

Open in new window

Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

How are you going to signify the user is done typing?  

I know in asp .net you can use an alt + key combo to jump to the next field, but not sure about here.
ASKER CERTIFIED SOLUTION
Avatar of shambalad
shambalad
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rads R

ASKER

where is that property as I do not see when I go to properties of the form in ms-access
"properties of the form "

It's a property of Controls (text / combo box) ... on the 'Other' tab.

mx

btw .. no points for my comment.

mx
Avatar of Rads R

ASKER

The problem i have is the user can enter any kind of value that would be a combination
of characters, numbers and hyphen .... so kind of getting issues with the input mask and
also the length is an issue ... dont know what the user might enter in that field
i checked with autotab property it is automatically navigating but the above are the issues

Thanks
Radhs
I think the auto tab is only going to be useful where a field as a fixed number of characters ... and ... all of those are required.

mx
Sorry, out of the office for a few hours...
Thanks for the back-up mx, I think you should at least get an assist for this one.
Todd
Radhs -
There's going to have to be some sort of a trigger in order for the application to know when to set the focus to the next control. Is there a particuar character(s), like a period, letter, number of space, that are added at the end of the field? Is it just the tab key that you cannot use, or is there another reason you need this way to automatically move to the next control?
Todd
Avatar of Rads R

ASKER

Yeah I think any user who does the data entry should atleast use tab of use the mouse to navigate to the next field ... but I think these users are a lot lazy that they cannot do this ...they want everything automatically do for them when they sit in the chair to do the work!
they just want to enter values but cannot use mouse or the tab key ... mey be it takes up a lot of energy for them to do .. which they dont want to burn it up!

thanks
radhs
radhs -
One of a developer's more important tasks is to manage user expectations. To this end, I am sometimes pulled into brainstorming sessions where my role is to tell the others which of their ideas is feasible or not from a technical standpoint. In the case of a request like the one your users are making, I would have to give an emphatic 'impossible'; at least until someone comes out with a computer that can read minds.
Good luck,
Todd
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rads R

ASKER

Ok I accept  that ... thanks!

Radhs