...查询(王明) &是连接字符串的运算符号 多看书吧 ,少用ado控件榜定才是学习的关键

解决方案 »

  1.   

    怎样从语法上来理解这句呢?的'" & text1.text & "',第一对中的单引号已经是引用字符串了。为什么还要加一对双引号呢。
      

  2.   

    "select * from shujuku where 姓名='" 为一个字符穿
    "' " 为一个字符穿
    这样明白不
      

  3.   

    debug.print "select * from shujuku where 姓名='" & text1.text & "' "
    看看结果就知道了
      

  4.   

    Adodc1.recordsouce="select * from shujuku where 姓名='" & text1.text & "' "可以解释为Adodc1.recordsouce="A "
    B=select * from shujuku where 姓名='
    C=text1.text
    A="B"&C&"'"如果不用text1.text 则可以这么写:
    Adodc1.recordsouce="select * from shujuku where 姓名='王明' "