tugas 3.7
Private Sub cmdbatal_Click() txtmnk = "" txtmn = "" txtmnk.SetFocus End Sub Private Sub cmdkeluar_Click() End End Sub Private Sub cmdlagi_Click() txtmnk = "" txtmn = "" txtgol = "" txtks = "" txtst = "" txtth = "" txtjb = "" txtbg = "" txtgp = "" txttj = "" txttotal = "" txtmnk.SetFocus End Sub Private Sub cmdproses_Click() Dim H, BAG, STAT, KS, GOL, JAB, GP, TJ As String N = Right(txtmn.Text, 3) If N = "KEU" Then BAG = "Accounting" ElseIf N = "ADM" Then BAG = "Administrasi" ElseIf N = "SDM" Then BAG = "General Affair" ElseIf N = "EDP" Then BAG = "IT Unit" ElseIf N = "SPM" Then BAG = "Security" End If txtbg.Text = BAG N = Mid(txtmn.Text, 7, 1) If N = "S" Then KS = "S" STAT = "Singgle" ElseIf N = "M" Then STAT = "M