ricaforrica
Programmer
Hello!
I'm creating a Word template. I have 3 textboxes
-> one for username (enabled)
-> one for a description (disabled)
-> one for password (enabled)
Then I have a button wich, when pressed, runs a Macro that checks an Oracle database to validate username/password. This is working!
What I need is to implement an event that detects the TAB key on the username textbox, goes to the database fetch the description and stores it in the description textbox, and finally set the focus to the username textbox...
I'm trying to use _KeyUp event and test if the key is TAB with:
if KeyCode = Chr(vbKeyTab) then...
but it isn't working!
Can anyone help me on this?
Thanks a lot!
Ricardo Pinto
I'm creating a Word template. I have 3 textboxes
-> one for username (enabled)
-> one for a description (disabled)
-> one for password (enabled)
Then I have a button wich, when pressed, runs a Macro that checks an Oracle database to validate username/password. This is working!
What I need is to implement an event that detects the TAB key on the username textbox, goes to the database fetch the description and stores it in the description textbox, and finally set the focus to the username textbox...
I'm trying to use _KeyUp event and test if the key is TAB with:
if KeyCode = Chr(vbKeyTab) then...
but it isn't working!
Can anyone help me on this?
Thanks a lot!
Ricardo Pinto