Private Sub cmdbatal_Click()
txtko.SetFocus
txtko.Text = “”
txtjudul.Text = “”
txtpengarang.Text = “”
txtTb.Text = “”
txtpenerbit.Text = “”
txtharga.Text = “”
End Sub
Private Sub cmdkeluar_Click()
Unload Me
End Sub
Private Sub cmdlagi_Click()
txtko.SetFocus
txtko.Text = “”
txtjudul.Text = “”
txtpengarang.Text = “”
txtTb.Text = “”
txtpenerbit.Text = “”
txtharga.Text = “”
End Sub
End Sub
Private Sub cmdproses_Click()
Dim S As String
S = Mid(text1.Text, 1, 3)
If S = “SIM” Then
text1.Text = “Sistem Informasi Manajemen”
text2.Text = “Fadiya Ulfa”
text5.Text = 75900
ElseIf S = “EDP” Then
text1.Text = “Elektronik Data Processing”
text2.Text = “Nurul Agustina”
text5.Text = 62000
ElseIf S = “MNJ” Then
text1.Text = “Manajemen”
text2.Text = “Rian Hidayat”
text5.Text = 42000
ElseIf S = “CDR” Then
text1.Text = “Corel Draw”
text2.Text = “Siti Nur Khotimah”
text5.Text = 53000
ElseIf S = “RPL” Then
text1.Text = “Rekayasa Perangkat Lunak”
text2.Text = “Winda Erlianti”
text5.Text = 83000
End If
S = Right(text1.Text, 1)
If S = “A” Then
text4.Text = “Andi Offset Yogyakarta”
ElseIf S = “I” Then
text4.Text = “Indah Surabaya”
ElseIf S = “S” Then
text4.Text = “Salemba Empat”
ElseIf S = “E” Then
text4.Text = “Elek Media Komputindo”
ElseIf S = “M” Then
text4.Text = “Maxicom”
End If
S = Mid(text1.Text, 5, 2)
If S = “09” Then
text3.Text = “2009”
ElseIf S = “10” Then
text3.Text = “2010”
ElseIf S = “11” Then
text3.Text = “2011”
ElseIf S = “12” Then
text3.Text = “2012”
ElseIf S = “13” Then
text3.Text = “2013”
End If
End Sub