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

Toggle Buttons 1

Status
Not open for further replies.

ColinM

Programmer
Jun 29, 2000
189
TH
How can I tell if a toggle button is depressed?
My code works okay when pressed but I don't know how to check if it is pressed in or not.
Any ideas?
 
A toggle button can have three states: Null, 0 (false), -1 (true)

So to test for true: (Change the red names accordingly)

If Me.tglButtonName = True Then .....

To test for Non-True:

If Me.tglButtonName <> True Then ..... [sig]<p>Jim Lunde<br><a href=mailto:compugeeks@hotmail.com>compugeeks@hotmail.com</a><br><a href= Application Development[/sig]
 
Easy when you know how :)

I was looking for a special property like .visible [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top