当字段为数字时,通过类似update tbl set col1 = " & numCount.Text & " where ....时报告失败,col1为数字字段,谢谢

解决方案 »

  1.   

    当然填的是数字,快速查看里面把这条sql语句copy出来,拿到access里面执行都能成功,文本字段没问题,时间字段也没问题,时间用#yyyy-mm-dd#框起来,但是数字用什么框起来呢?资料查遍了,没办法了,还是这里牛人多点,这里总不会让我失望吧,;)
      

  2.   

    Dim intCnt As IntegerintCnt = CInt(numCount.Text)
    update tbl set col1 = " & intCnt & " where