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

 

Iklan