My code does not work, I want to be able to delete a record using a button. So far I have
Private Sub btnDelete_Click(sender As System.Object, e As System.EventArgs) Handles btnDelete.Click
Dim EmployeeID As String
Dim sql As String
EmployeeID = dgvEmployees.CurrentRow.Cells(0).Value.ToString
sql = "delete * from employees where FirstName =" & EmployeeID
Comments
Leave a comment