Sep 6, 2000 #1 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?
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?
Sep 6, 2000 1 #2 jimmythegeek Programmer May 26, 2000 770 US 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=http://www.cgeek.com>CompuGEEKS</a><br>Custom Application Development[/sig] Upvote 0 Downvote
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=http://www.cgeek.com>CompuGEEKS</a><br>Custom Application Development[/sig]
Sep 7, 2000 Thread starter #3 ColinM Programmer Jun 29, 2000 189 TH Easy when you know how I was looking for a special property like .visible [sig][/sig] Upvote 0 Downvote