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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a button disappear 1

Status
Not open for further replies.

nickperez22

Technical User
Jun 13, 2001
62
US
I have a button that I would like to make disappear after the user has pressed it. So far I've been able to make it disappear during the session by using the visible property, but the next time the program loads the button is there again. How can I make the button disappear permanently?
 
Consider storing user values or customization values somewhere.
 
Add a field to your table which will store whether or not the button has been pushed (Yes/No). Set the visible property of the command to No. Have the code first verify the content of field (OnLoad), whether it has been pressed for that record before or not (If IsNull). Use th On_Click code to do what you want, but also to store the desired value into the table (1 or -1, True or False).

Hope that helps.

Sean.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top