Share via

change cmd button color

Anonymous
2010-11-23T03:45:47+00:00

Can we change the color of command button in property? If not, where to change it? Thanks in advance for your help!

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Anonymous
    2010-11-23T09:07:36+00:00

    Hi there,

    here are some properties you may wanna use:

    Me.cmdButton.FontBold = True

    Me.cmdButton.Caption = "This is a Button"

    Me.cmdButton.ForeColor = vbBlue

    Me.cmdButton.FontSize = 16

    Me.cmdButton.FontUnderline = True

    Here the BackColor, in case you´re going to move to Access2010

    Me.cmdButton.BackColor = vbRed 'works with Access 2010 only!


    Cheers Jörn Bosse, Microsoft Student Partner

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2010-11-23T04:12:14+00:00

    No, but you can make one that is transparent, and put a colored rectangle control underneath it.


    -Tom. Microsoft Access MVP

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2010-11-23T15:35:59+00:00

    Use a label control behind the button - you can change the color and text.

    You can use an unattached label control if you wish.  The control has click and double click event, but it does not have the ability to get the focus so all the events of a command button are not available on a label.


    John Spencer Access MVP 2002-2005, 2007-2010 The Hilltop Institute University of Maryland Baltimore County

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2010-11-23T11:27:58+00:00

    Hello MackHoFung,

    MackHoFung wrote:

    Can we change the color of command button in property? If not, where

    to change it?

    http://www.lebans.com/cmdbutton.htm

    HTH

    Gunter


    Access FAQ: http://www.donkarl.com

          http://www.avenius.com -http://www.AccessRibbon.com

    http://www.ribboncreator.com -http://www.ribboncreator2010.com

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2010-11-23T04:37:33+00:00

    Hi Tom, thanks for your reply.  OK, but how can I write text on it?

    Was this answer helpful?

    0 comments No comments