SELECT * from table1 where name='" & text1.text & "'"

解决方案 »

  1.   

    select * from table1 where name ='" & text1.text &"'"
    你带变量时格式不对。
    直接带是数值型。字符型要用单引号括起来。
      

  2.   

    "SELECT * from table1 where name='" & text1.text & "'"
      

  3.   

    CSDN用得是什么字体,那个'看不到。name = " ' " & text1.text & " ' "
      

  4.   

    SQL="SELECT * from table1" & "  where name=" & "'" & text1.text & "'"
      

  5.   

    SQL语句中字符型要用 ' 括起来,而数字的不要,所以如果是字符型 的要这么写select * from a where zd='" & text1.text & "'"
      

  6.   

    SELECT * from table1 where name='" & text1.text&"'.
    在时间数据类型中,要用#把变量括起来,比如:
    select * from table1 where time=#" & dtpicker.value &"#