Is it possiable to assign a combo box or a text box a key such as F6 or something..I've been able to get Alt+whatever to work, but the boss wants it easier. Eg. pressing F3 will take me to the date field instead of alt+d<br><br>thanks
Fisrt of all when you press a key it depends on what has focus at the time.<br>If a Textbox has focux then you could put the following in the textboxes KeyPress event.<br>Here is one for the form itself.<br>---------------------------------------------<br>Private Sub Form_KeyPress(KeyAscii As Integer)<br> If KeyAscii = &H75 Then<br> Me!DateField.SetFocus<br> End If<br>End Sub<br>---------------------------<br>&H75 is the correct value for F6 by the way.<br>But keep in mind you may have to do this all over your form in as many of the possible textboxes or whatever has focus.<br>Which could prove impossible if you have subforms and other controls.<br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.