那位帮忙看下这句话那里有问题:
          "update ab_stock set 库存=库存+'"+abamount+" 'where ID=' " + abid + "'"
    没有办法更新数据库里面的东西

解决方案 »

  1.   

    "update ab_stock set 库存=库存+abamountwhere ID=abid " 
      

  2.   

    "update ab_stock set 库存=库存+"&abamount&" where ID='"&abid&"'" 
      

  3.   

    "update ab_stock set 库存=库存+abamount where ID=abid
    不是变量不要加了就直接就好了
      

  4.   

    "update ab_stock set 库存=库存+"+abamount+" where ID='" + abid + "'" 
      

  5.   

    "update ab_stock set 库存=库存+"+abamount+" where ID=' " + abid + "'" 
    这样试一下