Results 1 to 4 of 4
  1. #1
    ramirezx@ddmfg.com is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    40

    MS Access Form and On Screen Keyboard

    Hi,

    I have an Access db with a form that has a field that when double tap, it will open the toggle screen keyboard. I also tried to open the On Screen keyboard as well. Does anyone know how I can write vba code that when I click on a button it will open the On Screen Keyboard or the Toggle Screen keyboard. Also On Enter I would like the keyboards to open?

    I tried these and none of them work?

    -----------------------------------------------------------------------------------------------

    Private Sub Test1_Click(KeyCode As Integer, Shift As Integer)


    Application.FollowHyperlink "C:\Windows\WinSxS\amd64_microsoft-windows-osk_31bf3856ad364e35_10.0.10586.0_none_37426bc5044 5e4b2\osk.exe"

    End Sub

    -----------------------------------------------------------------------------------------------


    Private Sub Test2_Click()


    shell "C:\Windows\System32\osk.exe"

    End Sub

    -----------------------------------------------------------------------------------------------


    Private Sub Test3_Click()


    Dim stappname As String




    stappname = "osk.exe"
    Call shell(stappname, 1)


    End Sub
    -----------------------------------------------------------------------------------------------


    Private Sub Test4_Click()


    Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _
    ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _
    ByVal lpDirectory As String, ByVal lpnShowCmd As Long) As Long
    Public Sub ShellEx()


    ShellExecute hWndAccessApp, "open", "C:\Windows\WinSxS\amd64_microsoft-windows-osk_31bf3856ad364e35_10.0.10586.0_none_37426bc5044 5e4b2\osk.exe", 0, 0, 1

    End Sub
    -----------------------------------------------------------------------------------------------


    Private Sub Test5_Click()


    DoCmd.SetWarnings False


    ShellExecute hWndAccessApp, "open", "C:\Windows\System32\osk.exe", 0, 0, 1


    'Shell "C:\Windows\System32\osk.exe"


    DoCmd.SetWarnings True


    End Sub

  2. #2
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    See the attached DEMO. It contains all required code
    Attached Files Attached Files
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  3. #3
    ramirezx@ddmfg.com is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    40
    thanks, I will give it a try!

  4. #4
    JasonH is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2021
    Posts
    2
    Thanks Colin... Needed this myself... Note: If you invoke the TabTip and the keyboard appears then immediately disappears as it did on me then change the Taskbar Automatic hide to off if not set already...Click image for larger version. 

Name:	Untitled.png 
Views:	22 
Size:	7.9 KB 
ID:	46696

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 09-13-2018, 04:10 PM
  2. usu screen keyboard in access
    By Cuasitos in forum Programming
    Replies: 3
    Last Post: 05-13-2018, 10:30 PM
  3. Calling the on screen keyboard
    By redekopp in forum Access
    Replies: 10
    Last Post: 05-25-2017, 04:16 PM
  4. Access Form Requery (F5 on keyboard or reopening) handler?
    By superfury in forum Code Repository
    Replies: 0
    Last Post: 08-23-2013, 03:17 AM
  5. how to make fit on screen of ms access form?
    By alex_raju in forum Forms
    Replies: 2
    Last Post: 07-25-2011, 05:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums