techsponge
Technical User
I am developing a program that uses a touch screen.
I have two fields 'UserName' and 'Password' on the login screen.
I have also created individual buttons A-Z for the user to press.
I have been trying to figure out how to get the info into the correct field using the On Click event with no luck?
Something like this:
Private Sub Ctl1_Click()
'If the username has the focus put a 1 in the field
if me.username.hasfocus then
me.username.value & '1'
End if
'If the password has the focus put a 1 in the field
if me.password.hasfocus then
me.password.value & '1'
End if
End Sub
Thanks in advance
I have two fields 'UserName' and 'Password' on the login screen.
I have also created individual buttons A-Z for the user to press.
I have been trying to figure out how to get the info into the correct field using the On Click event with no luck?
Something like this:
Private Sub Ctl1_Click()
'If the username has the focus put a 1 in the field
if me.username.hasfocus then
me.username.value & '1'
End if
'If the password has the focus put a 1 in the field
if me.password.hasfocus then
me.password.value & '1'
End if
End Sub
Thanks in advance