I am in process of completing a program for use on a touchscreen computer (It will not have a keyboard or Mouse). I created buttons that act as keyboard on some forms which work fine.
What I am Struggling With -
I have 3 different fields on my form named frmSc.
The fields are - FSc, MSc, OSc
When the focus moves on one of the fields, a hidden form becomes visible. This form named frmNumericKeypad has buttons from 0 - 9. When the user clicks on one of the buttons the caption value of the button is passed to the field that had the focus on the frmSc.
I know this might be too complex...But I am sure there are a few programmers here who have dealt with such a situation. Any suggestions are most welcome.. I have intermediate skills with VBA.
The code that works when clicking on the same form -
---------------------------------------
Function addletter()
ActualQty.Value = ActualQty.Value & Screen.ActiveControl.Caption
End Function
'This code is repeated for each button on its click event
Private Sub cmdbtn0_Click()
addletter
End Sub
---------------------------------
Thank You Very Much!
What I am Struggling With -
I have 3 different fields on my form named frmSc.
The fields are - FSc, MSc, OSc
When the focus moves on one of the fields, a hidden form becomes visible. This form named frmNumericKeypad has buttons from 0 - 9. When the user clicks on one of the buttons the caption value of the button is passed to the field that had the focus on the frmSc.
I know this might be too complex...But I am sure there are a few programmers here who have dealt with such a situation. Any suggestions are most welcome.. I have intermediate skills with VBA.
The code that works when clicking on the same form -
---------------------------------------
Function addletter()
ActualQty.Value = ActualQty.Value & Screen.ActiveControl.Caption
End Function
'This code is repeated for each button on its click event
Private Sub cmdbtn0_Click()
addletter
End Sub
---------------------------------
Thank You Very Much!