I have the following code which deletes a row after confirmation. As I know a little bit with message boxes, I could not figure it out. Hence if I say 'Yes' or 'No' the selected row is deleted. Please fix the problem.
MsgBox("Do you really want to delete this row ?", MsgBoxStyle.YesNo) With MyCommand .Connection = modConnection.MyConnection .CommandText = "Delete from Contacts where TAID=" & Val(LVW.Tag) & "" .ExecuteNonQuery() End With
The first line of code requires the correct code.