Button Text

peterbowles

Registered User.
Local time
Today, 20:22
Joined
Oct 11, 2002
Messages
163
Hi all

I have a button on a form, which when pressed makes some text fields visble as help text. What I want to do is when the button is pressed the button text changes from "Help Off" to "help On"

Thanks
 
Use the MouseDown and MouseUp events for changing the button's caption.

HTH nouba
 
On the on click event of YOURBUTTON use

if me.YOURBUTTON.caption = "Help On" then

Yourfields.visible = true
me.YOURBUTTON.caption = "Help Off"

else

Yourfields.visible = false
me.YOURBUTTON.caption = "Help On"

End If

Just substitute YOURBUTTON with the name of your button.

Dave
 

Users who are viewing this thread

Back
Top Bottom