Hello Friends!!
Private Sub dltbtn_Click(sender As Object, e As EventArgs) Handles dltbtn.Click confirm = MsgBox("do you want to delete the student profile", vbYesNo + vbCritical, "deletion confimation") If confirm = vbYes Then rs.Delete(ADODB.AffectEnum.adAffectCurrent) MsgBox("Record has been deleted successfully!!!", vbInformation, "message") rs.Update() Refresh() Else MsgBox("Profile not deleted", vbInformation, "message") End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)