Results 1 to 7 of 7
  1. #1
    Parker is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    76

    Easy one for you all - Why when I open a form does a command button look pressed?

    Is there anyway to open a form and not have the button look pressed?


    I say it looks pressed because around the command buttons border it has a dotted line around it... it drives me nuts!

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    It's probably because the command button is the first control in the tab order of the form, so that is where the cursor goes when the form is opened. To change the tab order, select View - Tab Order in form design.

    John

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Sounds like the button has focus when the form opens. Put something else first in the Tab Order, like a textbox.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    You sure its a command button and not a Toggle button? Toggles can start pressed.
    I've never seen a command button stay in...its not their behavior.
    Is the color scheme such that the colors are reversed and it 'looks' pressed?

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    That just means the button has focus, not that it is 'pressed'. When form opens, some control must get focus.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    Parker is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    76
    John_G

    I went to the Tab order and that is the reason because i clicked auto number and it changed the "pressed" button, but I don't know how to change the order! any help?

  7. #7
    Parker is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    76
    Solved it! Thanks!

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

Similar Threads

  1. Replies: 8
    Last Post: 06-25-2014, 08:03 AM
  2. Replies: 4
    Last Post: 06-01-2013, 11:32 PM
  3. Open Form or Command Button problem
    By geordie_taz in forum Forms
    Replies: 3
    Last Post: 12-13-2012, 10:09 AM
  4. Replies: 3
    Last Post: 04-17-2012, 03:26 PM
  5. Use a command button to open a form
    By johnpaul in forum Forms
    Replies: 24
    Last Post: 09-23-2010, 12:29 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