Adodc1.ConnectionString = "driver={SQL Server};" & "server=user-PC;uid=sa;pwd=lenovo;database=SPC"
Adodc1.RecordSource = "update sheet3 set r=' " & Text3.Text & " 'where r>230.22 "
Adodc1.Refresh运行的时候老是报这个,这是为啥呢? 好像是因为用的是update语句的原因,用select就没问题,该怎么改呢?

解决方案 »

  1.   

    你没有打开连接吧。需要先Open()?
      

  2.   

    Please open the connection first
      

  3.   

    呃,可同样的句子,把update语句换成select就没问题 这是为啥呢?
      

  4.   

    Adodc1.RecordSource = " update sheet3 set r=' " & Text3.Text & " ' where r>230.22 "
    是不是where那里没有空格。
      

  5.   

    adodc1.RecordSource =记录
    你这样的写法,没用过!