Results 1 to 3 of 3
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,095

    Form's On Key Down doesn't seem to fire


    I have a form with an "On Key Down" event that does not fire when I press the Ctrl key. I have another form in the same app that responds to the Key Down event without issue. What might cause the strange behavior?

    Code:
    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    '========================================================================================
    ' User wants to see the HELP file for selected option
    '========================================================================================
    MsgBox KeyCode
    
    
    If KeyCode = vbKeyControl Then bolHELP = True
    
    
    End Sub
    There is a class module associated with the form, but I don't see how that would affect a Key Down event.

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    At the very bottom of the form's property sheet event tab:
    Click image for larger version. 

Name:	keyevent.png 
Views:	14 
Size:	5.1 KB 
ID:	52199

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 10 Access 2013 32bit
    Join Date
    Feb 2011
    Posts
    2,095
    Thank you. A very old form but a new event added. No idea why the key preview was set to NO.
    Thanks again,
    Bill

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

Similar Threads

  1. MouseDown doesn't fire
    By GraeagleBill in forum Programming
    Replies: 3
    Last Post: 03-15-2024, 12:45 PM
  2. OnPage event doesn't seem to fire
    By GraeagleBill in forum Reports
    Replies: 14
    Last Post: 09-11-2022, 01:20 PM
  3. Form_Current Doesn't Fire on First Record
    By RMittelman in forum Programming
    Replies: 6
    Last Post: 09-24-2019, 02:23 PM
  4. Replies: 2
    Last Post: 04-17-2017, 11:26 PM
  5. Replies: 5
    Last Post: 12-03-2013, 01:25 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