今天写程序的时候在查询的时候有一行语句老是说类型错误,不知道如何修改!
假设
  dim bh as long
  bh = CLng(finebh.Text)
  wherestr = wherestr + "编号='" & bh &"'"
  bwhere = True在数据库的表中编号为long类型的,所以不知道应该怎么写!在线等,解决了马上给分!

解决方案 »

  1.   

    wherestr = wherestr + "编号=" & bh &""
      

  2.   

    wherestr = wherestr & "编号='" & bh &"'"
      

  3.   

    同意 zsgzsgzsg(zsg) 绝对不能去掉单引号~~~还那个没有关系~我看如果还不行,就把你整个语句都贴出来吧~你这样只写个变量有什么用~大家都不一定能帮到你~