Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389

    how to creat shortcut key for got focus

    Hello to all of you. Actually, to create a shortcut key for a button, I am adding & before its name as shown in the picture, due to which it has become a shortcut key for that button. But the problem is that when the shortcut key is pressed, that button gets clicked, whereas I want the button to got focus when the shortcut key is pressed. Please explain how this can happen.
    Thank you.
    Attached Thumbnails Attached Thumbnails butUntitled.png  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    you want to goto the button, but not click the button, so the user can click the button?

  3. #3
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by ranman256 View Post
    you want to goto the button, but not click the button, so the user can click the button?
    Actually, I want that once the user gets stuck on a button, then he can move to the desired button using the arrow keys on the surrounding buttons and hit enter.

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by deepaksharma View Post
    Actually, I want that once the user gets stuck on a button, then he can move to the desired button using the arrow keys on the surrounding buttons and hit enter.
    Can't the user do that using the Tab key?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by Bob Fitz View Post
    Can't the user do that using the Tab key?
    Thanks Bob this method is working.
    Actually, as shown in the figure, on clicking the Add Master button, a list box opens, on which five menu options are exposed.
    How can I go up and down on these?
    Also on this button Alt+M sometimes works sometimes not why is this happening?
    Thank you.
    Attached Thumbnails Attached Thumbnails listUntitled.png  

  6. #6
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Arrow keys.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    I agree wit Micron. Using the arrow up/down keys should enable you to navigate the list.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  8. #8
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    In this, I have tried arrow key, page up page down key, home key, end key, space key and tab key, it is not working.

  9. #9
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Can you post a copy of the db for us to play with.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  10. #10
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Likely you have some code preventing that. Possibly this key capture code? Easy enough for you to see if it runs when arrow keys are pressed.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  11. #11
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by Bob Fitz View Post
    Can you post a copy of the db for us to play with.
    yes Bob,

    Please check the attachment...
    Attached Files Attached Files

  12. #12
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Hello Bob,
    did you check mistake in this attachment ?
    thank you

  13. #13
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by deepaksharma View Post
    Hello Bob,
    did you check mistake in this attachment ?
    thank you
    I didn't need to. Minty diagnosed the problem in post #10.
    To be perfectly honest, I'm surprised that you couldn't find this yourself.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  14. #14
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by Bob Fitz View Post
    I didn't need to. Minty diagnosed the problem in post #10.
    To be perfectly honest, I'm surprised that you couldn't find this yourself.
    I have tried remove all the codes but still the problem not solved completely.

  15. #15
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by deepaksharma View Post
    I have tried remove all the codes but still the problem not solved completely.
    Post a copy of the db to illustrate that. I just the following three lines and then the arrow keys seemed to work as required

    DoCmd.OpenForm Me.List74.Value
    Me.butadd.SetFocus
    Me.List74.Visible = False
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. How to creat a report as in the picture?
    By Nguyendunganh in forum Reports
    Replies: 0
    Last Post: 05-29-2018, 03:04 AM
  2. Creat a Summary Report
    By Karenclaire in forum Reports
    Replies: 3
    Last Post: 04-23-2013, 06:27 AM
  3. Can't creat pivot table
    By jmhultin in forum Access
    Replies: 3
    Last Post: 03-11-2013, 03:08 PM
  4. How to creat an window for Username and password?
    By YaseenIskaf in forum Programming
    Replies: 2
    Last Post: 02-07-2013, 07:31 AM
  5. how to creat purchase order
    By arctushar@yahoo.com in forum Access
    Replies: 5
    Last Post: 10-07-2010, 08:14 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