Adodc1.Recordset.Fileds(1).Value=Trim(Text2.Text) 即可
用ADODC控件就别用SQL语句,用ADO对象再用

解决方案 »

  1.   

    Adodc1.RecordSource  =  "update  userpassword  set  [password]='"  &    Trim(Text2.Text)  &    "'  where  [user]='"  &    Trim(Text1.Text)  &    "'"
      

  2.   

    Adodc1.RecordSource    =    "update    userpassword    set    [password]='"    &          Trim(Text2.Text)    &          "'    where    [user]='"    &          Trim(Text1.Text)    &          "'"