Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Greying" out a button when using its macro 1

Status
Not open for further replies.

cbpwc01

Technical User
Feb 11, 2005
25
0
0
UM
I have a forms with two buttons linked to macros--one that put the form into "edit mode" and one that puts the form in "view mode". I want to have the button that is in effect to have the font appear a diiferent color. For example, when we are in edit mode, the text on the "edit mode" button is a different color, making it obvious which mode we are in.

Any ideas on how to start doing this?
 
How are ya cbpwc01 . . . .

Believing you code is in the [blue]Click event[/blue] for each button, copy paste the following code to each ([blue]You![/blue] substitute the proper color values in [purple]purple[/purple]):
Code:
[blue]   Me!CurrentButtonName.ForeColor = [purple][b]NewColor[/b][/purple]
   Me!AlternateButtonName.ForeColor = [purple][b]DefaultColor[/b][/purple][/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top