TUGAS PROGRAM A
Private Sub cmdkeluar_Click() End End Sub Private Sub cmdlagi_Click() txtnk.SetFocus txtnk = "" txtnik = "" txtgol = "" txtkstat = "" txtstatus = "" txttahun = "" txtjbt = "" txtbagian = "" txtgapok = "" txttunjangan = "" txttotg = "" End Sub Private Sub cmdproses_Click() Dim V As String txttahun = Left(txtnik, 4) V = Mid(txtnik, 7, 1) If V = "S" Then txtkstat = "S" txtstatus = "Single" ElseIf V = "M" Then txtkstat = "M" txtstatus = "Menikah" ElseIf V = "J" Then txtkstat = "J" txtstatus = "Janda" ElseIf V = "D" Then txtkstat = "D" txtstatus = "Duda" End If Dim S As String S = Right(txtnik, 3) If S = "KEU" Then txtbagian = "Accounting" ElseIf S = "ADM" Then txtbagian = "Administrasi&quo
Komentar
Posting Komentar