Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2015
    Posts
    1

    Lightbulb KeyPress event please help

    hello ...



    I need your help for the code in the event "KeyPress" where I can press any key in the keyboard in TextBox1 and it will give the result as (ASCII code) of the Pressed Key in Textbox2. For example here in the picture the Ascii code result of H is 72.





    Click image for larger version. 

Name:	KeyPress Event.jpg 
Views:	9 
Size:	65.8 KB 
ID:	21818




    Regards and appreciate your help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Try:
    Me.Text2 = Asc(Me.Text1)

    or

    Me.Text2 = KeyAscii
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 7
    Last Post: 05-08-2014, 10:34 AM
  2. Replies: 1
    Last Post: 03-29-2014, 07:46 PM
  3. A KeyPress Event and UNICODE character set
    By Marin in forum Programming
    Replies: 0
    Last Post: 02-27-2013, 08:32 PM
  4. Replies: 3
    Last Post: 05-07-2012, 12:17 PM
  5. Replies: 1
    Last Post: 03-31-2011, 02:51 AM

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