I have what I think is a strange problem with my VB Script code and the "window.event.KeyCode" that I use to move from field to field in the HTA form. What I want to do with the form is have the user go from the first input box on the form to the second input box. The second, third, and fourth input boxes are in a table. The problem right now though is when I hit the tab key on the keyboard when the first input box has the focus, it skips the second input box and goes right to the third. When I keep hitting the tab key, it just keeps skipping over the second input box, but has no problems with every other input box.
Does anyone have any idea why the tab key isn't working correctly with my code?
By the way, whatever the solution is, I can't get rid of the code that makes sure only numbers can be entered through the first box. I also don't want to use "tabindex" to determine the tab order because in my finished form, the tab order is dynamic based on what fields have values.
Appreciate any help you can give!