SQL.Clear;
SQL.Add(' update T_user set password= '''+trim(suiEdt_new.Text)+'''');
SQL.Add(' where username= '''+trim(suiCb_user.Text)+'''');
SQL.Add(' and password= '''+trim(suiEdt_old.Text)+'''');
ExecSQL;这个update语句在SQL里面可以使用,为什么在Access里面不行呢?
SQL.Add(' update T_user set password= '''+trim(suiEdt_new.Text)+'''');
SQL.Add(' where username= '''+trim(suiCb_user.Text)+'''');
SQL.Add(' and password= '''+trim(suiEdt_old.Text)+'''');
ExecSQL;这个update语句在SQL里面可以使用,为什么在Access里面不行呢?
SQL.Add(' update T_user set password= '+#39+trim(suiEdt_new.Text)+#39);
SQL.Add(' where username= '+#39+trim(suiCb_user.Text)+#39);
SQL.Add(' and password= '+#39+trim(suiEdt_old.Text)++#39);
ExecSQL;
在激活这个控件,我想应该可以吧,你试试,我这儿没有DELPHI,