net pwanage
New member
- Joined
- Dec 12, 2005
- Messages
- 4
this is what i have so far for updaing one column but i need to update multiple columns in my form
Dim MyConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=yada_yada_yada.mdb")
MyConnection.Open
Dim MyCommand As New OleDbCommand("UPDATE Cust SET Fname = me.txtFname.text WHERE ID = txtUpdID", MyConnection)
MyCommand.ExecuteNonQuery()
MyConnection.Close
MyReader.Close
MyCommand.Dispose
anyway how would i go about doing an update for lets say
SET Fname = me.txtFname.text, Lname = me.txtLname.text, Mname = me.txtMname.text WHERE ID = me.txtUpdID;
i have been searching for some kind of code showing this but my searches come up NULL
Dim MyConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=yada_yada_yada.mdb")
MyConnection.Open
Dim MyCommand As New OleDbCommand("UPDATE Cust SET Fname = me.txtFname.text WHERE ID = txtUpdID", MyConnection)
MyCommand.ExecuteNonQuery()
MyConnection.Close
MyReader.Close
MyCommand.Dispose
anyway how would i go about doing an update for lets say
SET Fname = me.txtFname.text, Lname = me.txtLname.text, Mname = me.txtMname.text WHERE ID = me.txtUpdID;
i have been searching for some kind of code showing this but my searches come up NULL