Slide1

Code :

Private Sub Command1_Click()
Dim s As String
Text5.Text = “20” & Left(Text2.Text, 2)
s = Mid(Text2.Text, 3, 1)
If s = “1” Then
Text3.Text = “SISTEM INFORMASI”
ElseIf s = “2” Then
Text3.Text = “MANAJEMEN INFORMATIKA”
ElseIf s = “3” Then
Text3.Text = “MTEKNIK INFORMATIKA”
ElseIf s = “4” Then
Text3.Text = “KOMPUTER AKUTANSI”
End If

s = Mid(Text2.Text, 4, 2)
If s = “00” Then
Text4.Text = “STRATA SATU”
ElseIf s = “01” Then
Text4.Text = “STRATA SATU”
ElseIf s = “02” Then
Text4.Text = “DIPLOMA EMPAT”
ElseIf s = “03” Then
Text4.Text = “DIPLOMA TIGA”
ElseIf s = “04” Then
Text4.Text = “DIPLOMA DUA”
End If

Text6.Text = Right(Text2.Text, 3)

End Sub

Private Sub Command2_Click()
Data1.Recordset.AddNew
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Command1.Enabled = True
Command3.Enabled = True
Command4.Enabled = True
Command5.Enabled = True
Text1.SetFocus
End Sub

Private Sub Command3_Click()
Data1.Recordset.Update
End Sub

Private Sub Command4_Click()
Data1.Recordset.Delete
Data1.Refresh
End Sub

Private Sub Command5_Click()
End
End Sub

Private Sub Form_Load()
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
Text4.Enabled = False
Text5.Enabled = False
Text6.Enabled = False
Command1.Enabled = False
Command3.Enabled = False
Command4.Enabled = False
Command5.Enabled = False
Command2.Enabled = True
End Sub

Iklan