Private Sub cmdbaru_Click()
Data1.Recordset.AddNew
txtnama.SetFocus
End Sub
Private Sub cmdkeluar_Click()
Unload Me
End Sub
Private Sub cmdproses_Click()
Dim A As String
txttm.Text = “20” & Left(txtnpm.Text, 2)
txtnu.Text = Right(txtnpm.Text, 3)
A = Mid(txtnpm.Text, 3, 1)
If A = “1” Then
txtjur.Text = “Sistem Informasi”
ElseIf A = “2” Then
txtjur.Text = “Manajemen Informatika”
ElseIf A = “3” Then
txtjur.Text = “Tehnik Komputer”
End If
A = Mid(txtnpm.Text, 4, 2)
If A = “00” Then
txtprodi.Text = “Strata1”
ElseIf A = “01” Then
txtprodi.Text = “Diploma4”
ElseIf A = “02” Then
txtprodi.Text = “Diploma3”
End If
End Sub
Private Sub Cmdsimpan_Click()
Data1.Recordset.Update
End Sub
Private Sub Cmddelete_Click()
Data1.Recordset.Delete
End Sub
Private Sub Form_Load()
End Sub