Is there a way to change the background of a Button

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

When I create an action button in a form using the wizard, the background
color is gray for the button. I have found the way to change the text color
or foreground color for the button but not the background color.

Is there a way?

Thanks

Dave
 
When I create an action button in a form using the wizard, the background
color is gray for the button. I have found the way to change the text color
or foreground color for the button but not the background color.

Is there a way?

Thanks

Dave
Dave,
I guess when you mention an 'action button' you are referring to a
command button.
An Access command button does not have a backcolor property.
You have several alternatives.
You can substitute a label. The Label backcolor can be changed.
By coding the labels MouseDown and MouseUp properties you can emulate
the up and down movement of the command button. Code the Label's click
event as you would the command button.

See http:/www.lebans.com for his method of changing a command button's
backcolor.
 
Access has nothing built-in to allow for changes in the command button
backcolor. There are some third-party tools that may help:

A shareware version of Button Painter for MS Access is available at
this web site: http://www.peterssoftware.com/bp.htm

Some simple colored button examples that can be copied into your
application are available at: http://www.peterssoftware.com/clrbtn.htm

Stephen Lebans has an example database that shows how to set a command
button back color and more: http://www.lebans.com/cmdbutton.htm

There are nice "Color Command Buttons" downloads at this site:
http://www.candace-tripp.com/access_downloads.htm

Hope this helps,
 
Back
Top