Public Class FRM
Public Class FRM
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
rs = New ADODB.Recordset
rs.Open("Select * from pointtable where ps_code = " & ps_code.Text & "", cn, 1, 2)
If rs.EOF = True Then Exit Sub
rs.Fields(0).Value = ps_code.Text
rs.Fields(1).Value = ps_name.Text
rs.Fields(2).Value = points_allot.Text
rs.Update()
rs.Close()
MsgBox("Existing Point System Updated", MsgBoxStyle.Information)
Call clear()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
rs = New ADODB.Recordset
rs.Open("Delete from pointtable where ps_code = " & ps_code.Text & "", cn, 1, 2)
MsgBox("Existing Point System Deleted", MsgBoxStyle.Information)
Call clear()
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
rs = New ADODB.Recordset
rs.Open("Select * from pointtable where ps_code = " & ps_code.Text & "", cn, 1, 2)
If rs.EOF = True Then Exit Sub
ps_code.Text = rs.Fields(0).Value
ps_name.Text = rs.Fields(1).Value
points_allot.Text = rs.Fields(2).Value
rs.Close()
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Me.Close()
End Sub
End Class