RSS

UTS Visual Basic 2

Slide1

Private Sub Command1_Click()

Data1.Recordset.AddNew

Text1.SetFocus

End Sub

Private Sub Command2_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 = “Manajemen 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 Satu”

End If

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

End Sub

Private Sub Command3_Click()

Data1.Recordset.Update

Data1.Refresh

End Sub

Private Sub Command4_Click()

Data1.Recordset.Delete

End Sub

Private Sub Command5_Click()

Unload Me

End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

Text2.SetFocus

End If

End Sub

Iklan
 

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: