资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

请教语句怎么写?

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

thdmx表里有两个float型字段sjsl和sjdw  
  set   rs=cnn.execute("select   *   from   thdmx   where   ....")  
  tempsl=rs.fields("sjsl")  
  tempdw=rs.fields("sjdw")  
   
  还有两个文本框txt_sl和txt_dw  
  现在要用tempsl+txt_sl.text   对thdmx_sjsl   进行更新  
  cnn.execute("update   thdmx   set   sjsl=tempsl+"&val(txt_sl.text)&"     ..   where...")  
  出错  
  请问这个表达该怎么写?

网友回答:

发表者:tztz520

cnn.execute("update   thdmx   set   sjsl="&   tempsl+   val(txt_sl.text)   &"     ..   where...")  
 

发表者:loverpyh

up

发表者:lxcc

cnn.execute("update   thdmx   set   sjsl="   &   txt_sl.Text   &   ",sjdw="   &   txt_dw.Text   &   "     where...")  
 

发表者:ryuginka

楼上的不行的.  
  cnn.execute("update   thdmx   set   sjsl="&   tempsl+   cdbl(txt_sl.text)   &"     ..   where...")  
  //当然你要保证你的文本矿输入的是数字


 

 
热门推荐笔记本: IBM笔记本
相关文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved