I have a form with a toggle button - the triplestate property is YES. I am trying to perform different code for each state but it seems like the triplestate value is not updating on click.
This is the start of it all - i have left out other code to keep this simple. The fact remains that the there doesn't seem to be any change - the Caption does not change from True. Any suggestions would be welcome.
Private Sub CallReceived_Click()
Dim strTripleState As String
strTripleState = Me.CallReceived.TripleState
Select Case strTripleState
Case True
Me.CallReceived.Caption = "True"
Case False
Me.CallReceived.Caption = "False"
Case Else
Me.CallReceived.Caption = "Null"
End Select
End Sub
This is the start of it all - i have left out other code to keep this simple. The fact remains that the there doesn't seem to be any change - the Caption does not change from True. Any suggestions would be welcome.
Private Sub CallReceived_Click()
Dim strTripleState As String
strTripleState = Me.CallReceived.TripleState
Select Case strTripleState
Case True
Me.CallReceived.Caption = "True"
Case False
Me.CallReceived.Caption = "False"
Case Else
Me.CallReceived.Caption = "Null"
End Select
End Sub