Tugas Baru

VB FAJAR

Private Sub Command1_Click()

Dim snpm As String

snpm = InputBox(“npm:”)

Adodc1.Recordset.MoveFirst

Adodc1.Recordset.Find “npm =” & snpm & “”

End Sub

 

Private Sub Command2_Click()

Text1.SetFocus

Adodc1.Recordset.AddNew

End Sub

 

Private Sub Command3_Click()

Adodc1.Recordset.Update

MsgBox “data berhasl disimpan…!!!”, vbOKOnly + vbInformation, “konfirmasi”

End Sub

 

Private Sub Command4_Click()

If MsgBox(“apakah anda yakin akan menghpusnya…???”, vbOKcancle + vbCritical, “konfirmasi”) = vbOK Then

Adodc1.Recordset.Delete

End Sub

 

Private Sub Command5_Click()

End

End Sub

Private Sub Form_Activate()

Text1.SetFocus

Text1.Text = “”

Text2.Text = “”

Text3.Text = “”

Text4.Text = “”

Text5.Text = “”

Text6.Text = “”

End Sub

 

Private Sub Text1_Change()

 

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