Langsung ke konten utama

TUGAS 3.6



Private Sub cmdbatal_Click()
txtkb = ""
txtjb = ""
txtpengarang = ""
txttt = ""
txtpenerbit = ""
txtharga = ""
txtkb.SetFocus
End Sub

Private Sub cmdkeluar_Click()
End
End Sub

Private Sub cmdlagi_Click()
txtkb = ""
txtjb = ""
txtpengarang = ""
txttt = ""
txtpenerbit = ""
txtharga = ""
txtkb.SetFocus
End Sub

Private Sub cmdproses_Click()
Dim B As String
B = Left(txtkb, 3)
If B = "SIM" Then
txtjb = "Sistem Informasi Manajemen"
txtpengarang = "Fadiya Ulfa"
txtharga = "75900"
ElseIf B = "EDP" Then
txtjb = "Elektronik Data Processing"
txtpengarang = "Nurul Agustina"
txtharga = "62000"
ElseIf B = "MNJ" Then
txtjb = "Manajemen"
txtpengarang = "Rian Hidayat"
txtharga = "42000"
ElseIf B = "CDR" Then
txtjb = "Corel Draw"
txtpengarang = "Siti Nur Khotimah"
txtharga = "53000"
ElseIf B = "RPL" Then
txtjb = "Rekayasa Perangkat Lunak"
txtpengarang = "Winda Erlianti"
txtharga = "83000"
End If
txttt = "20" & Mid(txtkb, 5, 2)
B = Right(txtkb, 1)
If B = "A" Then
txtpenerbit = "Andi Offset Yogyakarta"
ElseIf B = "I" Then
txtpenerbit = "Indah Surabaya"
ElseIf B = "S" Then
txtpenerbit = "Salemba Empat"
ElseIf B = "E" Then
txtpenerbit = "Elek Media Komputindo"
ElseIf B = "M" Then
txtpenerbit = "Maxicom"
End If
End Sub

Komentar