您的位置:程序门 -> vb ->



一个简单的句子,却搞不定


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


一个简单的句子,却搞不定
发表于:2007-10-25 17:58:04 楼主
  rs.open   "select   *   from   zhiyuan     where   xingming   =   '   "   &   seltxt   &   "   '",   cn,   adopenkeyset,   adlockbatchoptimistic

得到zhiyuan   表中   xingming   字段等于   seltxt   的值,是这样写吗?请指点,baidu了很久,无解呀。
发表于:2007-10-25 18:12:301楼 得分:0
rs.open   "select   *   from   zhiyuan     where   xingming   =     '"   &   seltxt   &   "'",   cn,   adopenkeyset,   adlockbatchoptimistic  

冒号之间的空格要去掉,还有要确定这个字段是文本类型
发表于:2007-10-25 22:00:372楼 得分:0
学习中
发表于:2007-10-26 11:20:333楼 得分:0
受教了,谢谢!
发表于:2007-10-31 14:17:354楼 得分:0
rs.open       "select       *       from       zhiyuan           where       xingming       =     '"         &       seltxt       &       "'             cn,       adopenkeyset,       adlockbatchoptimistic  
发表于:2007-10-31 16:40:105楼 得分:0
rs.open     "select   *   from   zhiyuan   where   xingming='"   &   seltxt   &   "'",cn,adopenkeyset,adlockbatchoptimistic      
发表于:2007-10-31 16:41:046楼 得分:0
rs.open           "select       *       from       zhiyuan       where       xingming=   ' "       &       seltxt       &       "   ' ",cn,adopenkeyset,adlockbatchoptimistic              


快速检索

最新资讯
热门点击