Daftar Mahasiswa VB

SS

Private Sub text1_keypress(keyascii As Integer)

If keyascii = 13 Then

Text2.SetFocus

End If

End Sub

Private Sub Command1_Click()

Dim s As String

Text5.Text = “20” & Left(Text2.Text, 2)

s = Text3.Text

s = Mid(Text2.Text, 3, 1)

If s = “0” Then

Text3.Text = “sistem informasi”

ElseIf s = “1” Then

Text3.Text = “sistem informasi”

ElseIf s = “2” Then

Text3.Text = “Manajemen Informatika”

ElseIf s = “3” Then

Text3.Text = “Komputer Akuntansi”

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 Tiga”

ElseIf s = “03” Then

Text4.Text = “Diploma Dua”

End If

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

End Sub

Private Sub Command2_Click()

Data1.Recordset.Update

Text1.SetFocus

End Sub

Private Sub Command3_Click()

Data1.Recordset.AddNew

End Sub

Private Sub Command4_Click()

Data1.Recordset.Delete

Data1.Refresh

End Sub

Private Sub Command5_Click()

Unload Me

End Sub

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: