Hi, John.
Toggle buttons only use -1 and 0, the VB convention for true and false
states, so it can't be set to anything else. It doesn't match other
programming language conventions.
One can always multiply the value of the toggle button by -1 to get a
positive 1 when the state is true (pushed in). Or one may use two unbound
text boxes and use the Raised Special Effect on one text box and the Sunken
Special Effect on the other, then use VBA code to make one text box visible
and the other invisible every time there's an OnMouseDown( ) event over the
visible one, but that's probably more coding than is needed. The simplest
way would be like this:
someValue = ToggleBtn.Value * -1
.. . . where ToggleBtn is the name of the toggle button and someValue is a
variable being assigned a positive 1 when the button is pressed in and 0 when
the button isn't.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.