Can the color of a command button be changed in Access 2000?

M

Macha

The command buttons, as it stands, go along with whatever the display theme
is in Windows. How can the color be altered in Access 2000, or CAN it be
altered?
 
B

Bruce

The short answer is no, you are stuck with the default color. You can add a
picture to a command button (do a search for "command button download free"
or something like that). Here are a couple of links for other solutions:
http://www.peterssoftware.com/clrbtn.htm
http://www.lebans.com/cmdbutton.htm
If all I need to do with a button is to click it, sometimes I will create a
label (I will call it lblCmdButton), type a space into it, then format it
with special effect raised and other choices that make it look like a command
button. Set its Click event to do what you need, set its Mouse Down event to
Me.lblCmdButton.SpecialEffect = 2, and its Mouse Up event the same except
with SpecialEffect = 1 (SpecialEffect 2 is sunken, 1 is raised). You can do
the same with a picture. Set the initial special effect as you would like.
SpecialEffect = 0 is for a flat effect. If you are unfamiliar with command
button code you can create a button with the wizard, then copy its code to
your picture or label, changing the name of the control as needed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top