A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Changing the color of a button on a form



 
 
Thread Tools Display Modes
  #1  
Old July 14th, 2004, 05:07 PM
Rebecca
external usenet poster
 
Posts: n/a
Default Changing the color of a button on a form

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


  #2  
Old July 14th, 2004, 05:25 PM
Rebecca
external usenet poster
 
Posts: n/a
Default Changing the color of a button on a form

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.


"Rebecca" wrote in message
...
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






  #3  
Old July 14th, 2004, 05:37 PM
Stephen Lebans
external usenet poster
 
Posts: n/a
Default Changing the color of a button on a form

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.


"Rebecca" wrote in message
...
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



  #4  
Old July 14th, 2004, 05:39 PM
fredg
external usenet poster
 
Posts: n/a
Default Changing the color of a button on a form

On Wed, 14 Jul 2004 11:07:12 -0500, Rebecca wrote:

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.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
auto entry into second table after update Tony New Users 13 July 9th, 2004 10:42 PM
synchronizing form and list box Deb Smith Using Forms 8 June 21st, 2004 08:15 PM
Problem Opening Another Form with a Button Chip Using Forms 1 June 6th, 2004 08:18 AM
go to another section of form using command button Maggie Using Forms 3 June 2nd, 2004 09:08 PM
Protect Form Button McDaniel General Discussion 2 May 21st, 2004 08:37 PM


All times are GMT +1. The time now is 08:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.