2 share  1 share__1 于 2014.09.18 09:14 提问

vb.net 至少一个参数没有被指定值
       Dim Name_CN As String = Name_CN_TextBox.Text  

Dim Personal_guid

    Personal_guid = Message_Oprations.DataGridView1.CurrentRow.Cells(14).Value.ToString

    cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\todd.ge\Documents\Visual Studio 2010\Projects\9.16\WindowsApplication4\information.mdb;Persist Security Info=False")
    cn.Open()
    Dim sql4 As String = "update Personal_table set Name_CN = '" & Name_CN & "' where  Job_guid ='" & Personal_guid & "'"
    cm = New OleDbCommand(sql4, cn)
    cm.ExecuteNonQuery()
    cn.Close()
    cn.Open()

已经单个测试过,Name_CN和Personal_guid都有值

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!