The OP can change the color of the CommandButton control during the
Click event. THe simplest method is to have a hidden CommandButton
control containing a single color Bitmap. During the Click event you
could use code like:
Me.TheNameofTheCurrentCommandButton.PictureData =
Me.TheNameOftheHiddenCommandButton.PictureData
A solution to allow you to specify the BackGround color of
COmmandButtons is here:
http://www.lebans.com/cmdbutton.htm
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Di" <di************@bpb-na.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Scott wrote: Is it possible to have a button change colour OnClick ?
Thanks.
Hi Scott,
Buttons do not have the background colour property so you can't
change their colour (pity). What I have used in the past is boxes,
they have an OnClick event that you can use to simulate a command button.
They however do not have a tab stop property so you may not be able to
bring them into focus without directly clicking on them. You can use
them in conjunction with the command button and use the visible
property to alternate between them.
Good Luck,
D...