Tugas VB ( data base )

htung

Private Sub Command1_Click()
Data1.Recordset.AddNew
txtnb.SetFocus
End Sub

Private Sub Command2_Click()
txtnb.SetFocus
txtnb = “”
txthb.SetFocus
txthb = “”
txtjb.SetFocus
txtjb = “”
Txtby.SetFocus
Txtby = “”
Txtpot.SetFocus
Txtpot = “”
Txttb.SetFocus
Txttb = “”
End Sub

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

Private Sub Command4_Click()
Txtby.Text = Val(txthb.Text) * Val(txtjb.Text)

If txtjb > 5 Then
Txtpot.Text = Val(Txtby.Text) * 0.02
ElseIf txtjb < 5 Then
Txtpot.Text = 0
End If

Txttb.Text = Val(Txtby.Text) – Val(Txtpot.Text)
End Sub

Private Sub Command5_Click()
End
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