Changing the color of a button on a form

  • Thread starter Thread starter Rebecca
  • Start date Start date
R

Rebecca

Can you change the color of the button in design view? If so how?

I want the button to be white and the wording to be black. The back ground
of the form is gray.


TIA

Rebecca S.
Access 2002, SP3
 
When I search the microsoft website it sends me to these directions (which
are for 2003) and in 2002 it doesn't give me the option of the Fill/Back
Color on the tool bar it is shaded out.

1.. Open a form, report, or data access page in Design view (Design view:
A window that shows the design of these database objects: tables, queries,
forms, reports, macros, and data access pages. In Design view, you can
create new database objects and modify the design of existing ones.).
2.. Click the control (control: A graphical user interface object, such as
a text box, check box, scroll bar, or command button, that lets users
control the program. You use controls to display data or choices, perform an
action, or make the user interface easier to read.) or section (section: A
part of a form, report, or data access page such as a header, footer, or
detail section.) that you want to change.
3.. On the Form/Report Formatting or Page Formatting toolbar, click the
arrow next to Fill/Back Color .
4.. Click a color in the palette.
Rebecca S.
 
CoomandButton control's do not expose a BackColor property. For a
workaround see:
http://www.lebans.com/cmdbutton.htm
CommandButton.zip is a database containing functions to allow a user
defined BackColor and Rotated Text for Command Buttons.

NEW - Jan. 26/2000 This version includes 2 functions. One for Form
Design view and one for Form View at Runtime.

1) Use API Color Dialog to select BackColor.

2) User Selectable degrees of rotation for Text in controls Caption.

3) Use in Form Design or Form View at Runtime.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Can you change the color of the button in design view? If so how?

I want the button to be white and the wording to be black. The back ground
of the form is gray.

TIA

Rebecca S.
Access 2002, SP3

Not using Access as delivered.

1) You can use an unbound label, color it as you wish.
Set it's SpecialEffects property to Raised, and code it's Mouse Up
event (LabelName.SpecialEffect = 1) and Mouse Down event
(LabelName.SpecialEffect = 2) to simulate movement.

Then code the label's click event as you would a command button.

2) Set a white colored background as the Command Button Picture
property. You can use MSPaint to create the white picture background.
(Include the caption in the MSPaint picture, not in the command button
caption property.) A small bit of practice to get the size right, but
once you do it it's easy.

3) See
http://www.lebans.com
for his command button work-around.
 
Back
Top