update 语法错误码?  cn.Execute (" update test set Percent = '" + (Text1(1).Text) + "'where eid = 2 ")

解决方案 »

  1.   

    cn.Execute " update test set Percent = '" & Text1(1).Text & "' where eid = 2 "
      

  2.   

    call cn.Execute (" update test set Percent = '" + (Text1(1).Text) + "'where eid = 2 ")
      

  3.   

    call cn.Execute (" update test set Percent = '" + Text1(1).Text + "' where eid = 2")
      

  4.   

    where前加个空格,percent加方括号试试:
    cn.Execute " update test set [Percent] = '" & Text1(1).Text & "'  where eid = 2 "
      

  5.   

    刚才发现 犯了个低级错误 percent 是关键字,,,所以才会发生错误,,谢谢大家!
      

  6.   

    ...无返回值的函数调用不用括号, 要加括号的话前面得有call