Toggle Button

Cosmos75

Registered User.
Local time
Today, 01:36
Joined
Apr 22, 2002
Messages
1,280
Is there anyway to get a Toggle button to display Yes or No depending on the state it is in? (0 or -1)

Thanks!
 
If ToggleButton = -1 Then
ToggleButton.Caption = "Yes"
Else
ToggleButton.Caption = "No"
End If
 
doulostheou,

Thanks! Works great. Sortof. I am using it in a form and when I change the state of the toggle button, it changes but all other toggle buttons are switched to the same state.

Now, what I am trying to do is put a toggle button on a form that is tied to a YES/NO field in a table and to get it to dislpay YES or NO depending on the value of the YES?NO field for that record and to change if the user clicks the button? I may need to make the button a three-way button (YES/NO/NULL).

Is this possible?

THANKS!

[This message has been edited by Cosmos75 (edited 05-31-2002).]
 
I figured out that I have to put it in the Form Current Code!
 

Users who are viewing this thread

Back
Top Bottom