Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Jul 2003
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Command Button (Access 2002)

    I have a set of command buttons on the bottom of my form; I like to change the background color of the command button once I have clicked on the button. This way I know which command button was just clicked. Does anyone have any ideas?

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Command Button (Access 2002)

    You can't change the background colour of a command button.

    To achieve what you want you need to use Labels instead of Command buttons. Labels have an Onclick event, and can be given the same raised appearance as command buttons.

    With labels you can set the Backcolor in code, and the forecolor, and the caption etc.
    Regards
    John



  3. #3
    5 Star Lounger
    Join Date
    Nov 2004
    Location
    Wilmington, North Carolina, USA
    Posts
    1,196
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Command Button (Access 2002)

    You can't customize them after opening the customize menu then right-clicking on the button?
    ____________________________
    Jeremy
    "If you spend more on coffee than on IT security, then you will be hacked. What's more, you deserve to be hacked." -Richard Clarke

  4. #4
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Command Button (Access 2002)

    The customizable option is the forecolor, not the backcolor, which is determined by windows settings.
    Charlotte

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Command Button (Access 2002)

    Tools | Customize is for menus and toolbars. This thread is about command buttons on forms. The background color of Access command buttons is governed by Windows, not by Access (it is the color for 3D objects in the Appearance tab of the Display Properties control panel.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •