Page 1 of 3 123 LastLast
Results 1 to 15 of 37
  1. #1
    linda12 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    18

    Alphabet linked to handsign

    Hi,
    I would like to know if there is any way of doing this way . Like when I type a letter on my keyboard , a preassigned symbol (hand sign for that particular alphabet )appears on screen . It is alright if it disappears after that . Well, This is actually for someone with partial autism who can type , but has problems in reading the letters (starting problem ). He is well acquainted with a symbol for each particular letter . So when he types a letter , if the symbol comes on the screen on its own , he will be able to recognize it and make words independently . Let me know if this can be done. Thanks a lot.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I suppose code in the KeyUp or KeyDown or KeyPress event could do this.
    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.

  3. #3
    linda12 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    18
    how to do that
    ???

  4. #4
    linda12 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    18
    The symbol which I want to insert is a picture. How do I do that

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Do you have pictures for each key?

  6. #6
    linda12 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    18
    Yes , I have pictures for each key .

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Have you designed your form to have a place to display this picture?

  8. #8
    linda12 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    18
    No.I don't know how to do .

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Well what did you have in mind? A big textbox to type in with a picture box next to it?

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I've tried to use VBA to set the ControlSource property of Image control and it didn't work. So the only thing I could suggest is to have 26 Images on the form and use code to make them visible/not visible.
    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.

  11. #11
    linda12 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    18
    Quote Originally Posted by RuralGuy View Post
    Well what did you have in mind? A big textbox to type in with a picture box next to it?
    Yes. When I press a letter on my keyboard ,for example A then handsign of A must appear on screen and then disappear .And then I press the next alphabet for example N , corresponding handsign must appear and then disappear . , So as to help the person make words(2 or 3 letter words) ..( The person I am working with is partially autistic and is interested in learning with computers . ) This might help him .

  12. #12
    linda12 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    18
    Quote Originally Posted by June7 View Post
    I've tried to use VBA to set the ControlSource property of Image control and it didn't work. So the only thing I could suggest is to have 26 Images on the form and use code to make them visible/not visible.
    How do I insert images on the form ? And what is the code which can be used ??

  13. #13
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Here's a link to three different approaches: http://accdevel.tripod.com/imaging.htm

  14. #14
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    Try with one Image control say Image0, One textbox say Text 1 on a form. Save all the pictures in a folder naming them by the letter itself like A.jpg,B.jpg etc.
    Following code in the texbox's key up event should show the picture. To make it disappear after some time, try the timer event.
    Code:
    Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
    If KeyCode > 64 And KeyCode < 91 Then
    Me.Image0.Picture = "Path to Images Folder\" & Chr(KeyCode) & ".jpg"
    End If
    End Sub
    Replace "Path to Images Folder\" with folder used to store images.

  15. #15
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I tried amrut's suggestion (as stated earlier, I've tried this before) and still can't get that to work. I know it's supposed to because before Access 2007 the only way to have dynamic image display in forms and reports was with VBA. Access 2007 introduced the ControlSource property to Image control so code is not required. However, can't set the ControlSource property with VBA and setting Picture property with VBA isn't working for me. The code runs without error but simply does not display image.

    Take advantage of the ControlSource property by having a table of images with a record for each image. Text field for the characters and Attachment field to hold the images. Bind form to the table, bind Image control to the Attachment field holding the images, then code in textbox KeyUp event filters the form records to display appropriate sign.
    Code:
    Option Compare Database
    Option Explicit
    Private Sub Text0_KeyUp(KeyCode As Integer, Shift As Integer)
    If (KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 65 And KeyCode <= 90) Or (KeyCode >= 97 And KeyCode <= 122) Then
        Me.Filter = "Char='" & Chr(KeyCode) & "'"
        Me.FilterOn = True
        Me.imgChar.Visible = True
    End If
    End Sub
    Otherwise only other approach I could suggest requires 36 Image controls on a form and a single textbox for entering letters and this code:

    Code:
    Option Compare Database
    Option Explicit
    Public strImage As String
    
    Private Sub Text0_KeyUp(KeyCode As Integer, Shift As Integer)
    'This should handle digits 0 through 9 and letters (upper or lower case).
    If strImage <> "" Then Me(strImage).Visible = False
    If (KeyCode >= 48 And KeyCode <= 57) Or (KeyCode >= 65 And KeyCode <= 90) Or (KeyCode >= 97 And KeyCode <= 122) Then
        strImage = "img" & Chr(KeyCode)
        Me(strImage).Visible = True
    End If
    End Sub
    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.

Page 1 of 3 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Alphabet autoincrement
    By KWHAT in forum Access
    Replies: 16
    Last Post: 05-23-2012, 08:29 AM
  2. Replies: 2
    Last Post: 02-25-2012, 10:17 AM
  3. Replies: 5
    Last Post: 02-02-2012, 06:42 PM
  4. Cleaning up the alphabet
    By ducecoop in forum Access
    Replies: 4
    Last Post: 10-28-2010, 08:33 AM
  5. Alphabet break in report
    By amccook in forum Reports
    Replies: 8
    Last Post: 08-27-2010, 03:13 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