Results 1 to 7 of 7
  1. #1
    shod90 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Posts
    134

    Problem with Autokeys

    Dear All ,
    I already have an autokeys feature working in my form .


    But the big issue here is when i close the specific form that i made on it the autokey and open another form and press for example F2 , It opens the first form and do it's job!
    I need to enable the autokey in a specific form only , Or in other words is it possible to create more than one autokey for different forms ?

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    Autokeys is designed to work across the entire application.
    If that is an issue, ensure you don't use the same autokey in one place that you want for another purpose elsewhere.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  3. #3
    shod90 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Posts
    134
    Quote Originally Posted by isladogs View Post
    Autokeys is designed to work across the entire application.
    If that is an issue, ensure you don't use the same autokey in one place that you want for another purpose elsewhere.
    So , Is there a way to configure autokeys for a specific form ? OnkeyPress event can't help ?

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    Not as far as I am aware. As stated, that's not what it is designed for
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,397
    suggest take a look at the keydown event

    https://docs.microsoft.com/en-us/off...s.form.keydown

    might do what you require - don't forget to set the form keypreview property to yes (bottom of the events tab)

  6. #6
    shod90 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2016
    Posts
    134
    It works with OnkeyDown like a charm for every form the F1 button can do different function !!!
    Thanks all.

  7. #7
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    Glad you have a solution. Of course that means F1 isn't available for Access help.
    Just use Autokeys for application-wide shortcuts.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. AutoKeys macro does not work
    By JohnOchoa in forum Access
    Replies: 6
    Last Post: 01-19-2020, 05:11 PM
  2. Autokeys shortcut to go to design view
    By Steeeeev in forum Macros
    Replies: 1
    Last Post: 07-30-2019, 06:40 AM
  3. AutoKeys Macro Problem
    By MatthewR in forum Macros
    Replies: 3
    Last Post: 04-01-2016, 10:08 AM
  4. Can you use AutoKeys Macro in MS Access 2010?
    By JrMontgom in forum Access
    Replies: 14
    Last Post: 04-11-2015, 12:06 PM
  5. Autokeys
    By sergran in forum Programming
    Replies: 10
    Last Post: 10-05-2013, 10: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