hey yer barred
Board Regular
- Joined
- Jun 19, 2007
- Messages
- 232
Hi All!
I have never used toggle buttons before so this is probaly why they aint working!
Just so I can get used to them, Ive created 3 simple toggle buttons called Call Centre, Team Manager and Agent.
Which ever one is active, and you click on a button called 'Test'...it will display a message box saying Call Centre.
e.g - if Team Manager is toggled, and test is clicked, Team Manager will appear in a message box..
Heres my coding
Dim togag As New Control
Dim togcc As New Control
Dim togtm As New Control
If Me.togag.Value = True Then
MsgBox "Agent"
ElseIf togcc.Value = True Then
MsgBox "Call Centre"
ElseIf togtm.Value = True Then
MsgBox "Team Manager"
Else
MsgBox "Nothing Selected!"
End If
End Sub
Any ideas why its not working?
I have never used toggle buttons before so this is probaly why they aint working!
Just so I can get used to them, Ive created 3 simple toggle buttons called Call Centre, Team Manager and Agent.
Which ever one is active, and you click on a button called 'Test'...it will display a message box saying Call Centre.
e.g - if Team Manager is toggled, and test is clicked, Team Manager will appear in a message box..
Heres my coding
Dim togag As New Control
Dim togcc As New Control
Dim togtm As New Control
If Me.togag.Value = True Then
MsgBox "Agent"
ElseIf togcc.Value = True Then
MsgBox "Call Centre"
ElseIf togtm.Value = True Then
MsgBox "Team Manager"
Else
MsgBox "Nothing Selected!"
End If
End Sub
Any ideas why its not working?