NILAI MAHASISWA

RUMUS YANG DI GUNAKAN UNTUK MEMBUAT NILAI MAHASISWA SEPERTI GANBAR DI ATAS ADALAH

Private Sub cmdbatal_Click()
Unload Me
End Sub
Private Sub cmdkeluar_Click()
End
End Sub

Private Sub cmdlagi_Click()
txtnpm.SetFocus
txtnpm.Text = “”
txtnama.Text = “”
txtnilaiquis.Text = “”
txtnilaitugas.Text = “”
txtnilaiuts.Text = “”
txtnilaiuas.Text = “”
txtnilaiakhir.Text = “”
End Sub

Private Sub cmdproses_Click()
txtnilaiakhir.Text = Val((txtnilaiquis.Text) + Val(txtnilaitugas.Text) + Val(txtnilaiuts.Text) + Val(txtnilaiuas.Text)) / 4
End Sub

Private Sub txtnama_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtnilaiquis.SetFocus
End If
End Sub
Private Sub txtnilaiquis_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtnilaitugas.SetFocus
End If
End Sub
Private Sub txtnilaitugas_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtnilaiuts.SetFocus
End If
End Sub
Private Sub txtnilaiuts_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtnilaiuas.SetFocus
End If
End Sub

Private Sub txtnpm_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtnama.SetFocus
End If
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