What is wrong with the following code?

Sub cmdEdit_Click
rs.Update
rs("strName")=txtName.Text
rs.Edit
End Sub