If MsgBox("Are you sure ?", MsgBoxStyle.YesNo, "Delete") = MsgBoxResult.Yes Then
strup = "DELETE FROM student WHERE urno =" & CInt(txtUrn.Text) & ";"
Dim command As New OleDb.OleDbCommand(strup, con)
'MsgBox("Do you want to delete record(s)", MsgBoxStyle.YesNoCancel, "Confirm Delete")
command.ExecuteNonQuery()
con.Close()
txtUrn.Text = ""
txt10Per.Text = ""
txt12Per.Text = ""
txtCAdd.Text = ""
txtEid.Text = ""
txtFname.Text = ""
txtGPer.Text = ""
txtMno.Text = ""
txtName.Text = ""
txtPAdd.Text = ""
cmb10YofPass.Text = ""
cmb12YofPass.Text = ""
cmbDate.Text = ""
cmbGender.Text = ""
cmbMonth.Text = ""
cmbNameofGCourse.Text = ""
cmbYear.Text = ""
ComboBox1.Text = ""
TextBox1.Text = ""
MsgBox("Record Deleted Successfully")
ElseIf MsgBoxResult.No Then
End If