怎么样修改表中的字段
怎么样修改表中的字段
代码如下:
Dim cstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\csdata\xtdata\医院资料.mdb"
'Dim sql As String = "select * from 医院资料"
Dim strsql As String = "update 医院资料 set 医院名称2='" & TextBox1.Text & "',注册码='" & TextBox2.Text & "'"
Dim con As New OleDb.OleDbConnection(cstring)
Dim Command As New Data.OleDb.OleDbCommand(strsql, con)
con.Open()
con.Close()
谢谢~~`