Results 1 to 4 of 4
  1. #1
    caddcop is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2011
    Location
    Upper Marlboro, Maryland, USA
    Posts
    57

    What Events are triggered if a user presses <Esc>?

    I have a form and want to only display a Save Record button when there is something to save. I have it appearing and disappearing in almost all situations correctly. But, the one instance that I am stumped, is when a user presses the <Esc> button. This discards all edits, but leaves my save button visible.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I can't think of an event triggered by the escape key offhand. The one workaround that comes to mind is using the form's Keypress event to check for the escape key, and hide your button if it's used.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    caddcop is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Feb 2011
    Location
    Upper Marlboro, Maryland, USA
    Posts
    57
    I was able to use that. Thanks!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. count of events
    By old_chopper in forum Access
    Replies: 1
    Last Post: 02-28-2011, 12:49 PM
  2. Different Events
    By jo15765 in forum Programming
    Replies: 2
    Last Post: 12-07-2010, 12:45 PM
  3. Form_Load Events
    By TheDeceived in forum Programming
    Replies: 1
    Last Post: 09-20-2010, 12:19 PM
  4. Replies: 8
    Last Post: 06-30-2010, 10:57 PM
  5. form events
    By EinSpringfielder in forum Programming
    Replies: 1
    Last Post: 08-26-2009, 11:01 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