sagar_p_parakh
Member
- Joined
- Nov 7, 2008
- Messages
- 20
- Programming Experience
- Beginner
Dim cmd As OleDbCommand
Dim str As String
conn.Open()
str = "Update table1 set emp_name='" & TextBox2.Text & "', city='" & TextBox3.Text & "', " _
& "attendance='" & TextBox4.Text & "' salary='" & TextBox5.Text & "'"
cmd = New OleDbCommand(str, conn)
cmd.ExecuteNonQuery()
conn.Close()
===============================================
I have tried to update the entry but it is not working..........
CAn any one help me ......how to update data of ms access database ?
Dim str As String
conn.Open()
str = "Update table1 set emp_name='" & TextBox2.Text & "', city='" & TextBox3.Text & "', " _
& "attendance='" & TextBox4.Text & "' salary='" & TextBox5.Text & "'"
cmd = New OleDbCommand(str, conn)
cmd.ExecuteNonQuery()
conn.Close()
===============================================
I have tried to update the entry but it is not working..........
CAn any one help me ......how to update data of ms access database ?