Private Sub Command1_Click()
Dim S As String
S = Mid(Combo1.Text, 1, 3)
If S = “SIM” Then
Text2.Text = “Sistem Informasi Manajemen”
Text3.Text = “Fadiya Ulfa”
Text6.Text = 75900
ElseIf S = “EDP” Then
Text2.Text = “Elektronik Data Processing”
Text3.Text = “Nurul Agustina”
Text6.Text = 62000
ElseIf S = “MNJ” Then
Text2.Text = “Manajemen”
Text3.Text = “Rian Hidayat”
Text6.Text = 42000
ElseIf S = “CDR” Then
Text2.Text = “Corel Draw”
Text3.Text = “Siti Nur Khotimah”
Text6.Text = 53000
ElseIf S = “RLP” Then
Text2.Text = “Rekayasa Perangkat Lunak”
Text3.Text = “Winda Erlianti ”
Text6.Text = 83000
End If
S = Right(Combo1.Text, 1)
If S = “A” Then
Text5.Text = “Andi Offset Yogyakarta”
ElseIf S = “I” Then
Text5.Text = “Indah Surabaya”
ElseIf S = “S” Then
Text5.Text = “Salemba Empat”
ElseIf S = “E” Then
Text5.Text = “Elek Media Komputindo”
ElseIf S = “M” Then
Text5.Text = “Maxicom”
End If
S = Mid(Combo1.Text, 5, 2)
If S = “09” Then
Text4.Text = “2009”
ElseIf S = “10” Then
Text4.Text = “2010”
ElseIf S = “11” Then
Text4.Text = “2011”
ElseIf S = “12” Then
Text4.Text = “2012”
ElseIf S = “13” Then
Text4.Text = “2013”
End If
End Sub
Private Sub Command2_Click()
Combo1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text2.SetFocus
End Sub
Private Sub Command3_Click()
Combo1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text2.SetFocus
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Form_Load()
Combo1.AddItem “SIM-09-A”
Combo1.AddItem “EDP-10-I”
Combo1.AddItem “MNJ-11-S”
Combo1.AddItem “CDR-12-E”
Combo1.AddItem “RLP-13-M”
End Sub