Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2016
    Posts
    2

    MSa2003 ansi character downkey in a listbox causes a click event after the downkey event

    Has anyone else noticed this ? It's not documented in the "order of events" for
    downkey in the on-screen Help.
    Setup a listbox on a blank form.
    Type three records in the list with a in the first record, b in the second etc
    When you press the "b" key the keydown event is actioned then the click event.


    I would be interested to know if it happens in any other versions of Access
    I got round the problem by changing the listbox event to dblclick.
    Happens under XP and WIN10

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Of course it does! Events, like keydown, don't have order of events...Forms have 'order of events,' and they follow in order, hence the term 'order of events!' One event firing doesn't prevent other events from occurring...in order!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    Join Date
    Oct 2016
    Posts
    2
    Quote Originally Posted by Missinglinq View Post
    Of course it does! Events, like keydown, don't have order of events...Forms have 'order of events,' and they follow in order, hence the term 'order of events!' One event firing doesn't prevent other events from occurring...in order!

    Linq ;0)>
    When you press and release a key or send a keystroke in the ANSI character set key, the KeyDown, KeyPress, and KeyUp events all occur. If you press and hold down an ANSI key, the KeyDown and KeyPress events alternate repeatedly (KeyDown, KeyPress, KeyDown, KeyPress, and so on) until you release the key; then the KeyUp event occurs. - nothing about a click event occuring

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

Similar Threads

  1. Replies: 4
    Last Post: 10-12-2015, 12:16 PM
  2. Need help with click Event
    By DXXPublic in forum Programming
    Replies: 3
    Last Post: 09-23-2015, 06:55 PM
  3. Replies: 13
    Last Post: 09-10-2015, 03:37 PM
  4. Replies: 4
    Last Post: 06-24-2013, 07:34 AM
  5. A KeyPress Event and UNICODE character set
    By Marin in forum Programming
    Replies: 0
    Last Post: 02-27-2013, 08:32 PM

Tags for this Thread

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