|
-
Mar 13th, 2004, 12:39 AM
#1
Thread Starter
New Member
Help with combo box
I have this code so if I select something from the combo box, there is a text box next to it, which will show the explanation of the selection, can someone take a look at this and see if there is a way to make this happen:
VB code:
Private Sub cbSLAType_Change()
If cbSLAType = "PC Replacement" Then
txtTypeDetail.Visible = True
txtTypeDetail.Text = "PC Replacement"
ElseIf cbSLAType = "Password Reset" Then
txtTypeDetail.Visible = True
txtTypeDetail.Text = "Password Reset"
ElseIf cbSLAType = "3D ID set up" Then
txtTypeDetail.Visible = True
txtTypeDetail.Text = "3D Id Set Up"
ElseIf cbSLADetail = "Phone Moves" Then
txtTypeDetail.Visible = True
txtTypeDetail.Text = "Phone Moves"
ElseIf cbSLAType = "Workstation Moves" Then
txtTypeDetail.Visible = True
txtTypeDetail.Text = "Workstation Moves"
ElseIf cbSLAType = "LAN Printer Moves" Then
txtTypeDetail.Visible = True
txtTypeDetail.Text = "LAN Printer Moves"
Else
txtTypeDetail.Visible = False
End If
End Sub
maybe there is a better way to do this, the text box is going to be invisible, but when they make the selection, it'l show the explanation.
Thank you for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|