السلام عليكــم ورحمـة الله وبركاتــه ،،
'i used to use this code with vb6 'consider Conn is my Connection Dim RS As New ADODB.Recordset RS.Open "select id,name from units ", Conn RS.AddNew RS!id = 1 RS!Name = "Emad" RS.Update RS.Close
'And if i want to edit existing record RS.Open "select name from units where id=1", Conn RS!Name = "Ahmed" RS.Update RS.Close
how to do this in vb.net