以下edit1怎么不显示数据???
=============
djj为 tadoquery
========djj.Close;
djj.SQL.Clear;
djj.SQL.Add('select * from t_djj');
djj.sql.Add('where (代理点='''+edit4.Text+''')');
djj.SQL.add('and (重量1<:zl1)');
djj.sql.add('and (重量2 >:zl1)');
djj.Parameters.ParamByName('zl1').Value:=strtofloat(edit10.Text);
djj.open;
edit1.Text:=floattostr(djj.fieldbyname('价格').AsFloat);
=============
djj为 tadoquery
========djj.Close;
djj.SQL.Clear;
djj.SQL.Add('select * from t_djj');
djj.sql.Add('where (代理点='''+edit4.Text+''')');
djj.SQL.add('and (重量1<:zl1)');
djj.sql.add('and (重量2 >:zl1)');
djj.Parameters.ParamByName('zl1').Value:=strtofloat(edit10.Text);
djj.open;
edit1.Text:=floattostr(djj.fieldbyname('价格').AsFloat);
解决方案 »
- 关于delphi里面ComBox的取值问题
- delphi 带参数时包含空格问题的解决方法公布!
- 汉字在内存中是如何表示的?!
- 问题 - 很急的一个问题
- 紧急救助!安装包制作问题
- 源码,相信不少人会喜欢的,关于任务栏按钮的右键菜单
- 北狼问大家好,哪位同志使过mapx这东西,在delphi中怎么和它有机结合到一起,具体请进
- TADOQuery的用法
- http://www.csdn.net/develop/read_article.asp?id=3621<浏览器右键快捷菜单>
- 能用ADO存取互联网上的WEB数据库(MSSQL)吗?如能,如何用。请高手指教!
- 这个错误我实在是不知道是什么导致的了,大家帮帮忙!
- table1.InsertRecord和table1.SetFields能否直接用SQL语句替代??????
应该其它问题,其它字段可以显示吗?字段类型是FLOAT型吗?用VALUE吧
edit1.Text:=floattostr(djj.fieldbyname('价格').value);
我已经搞定了
djj.SQL.add('and (重量1<'+' '''+edit10.text+''')');
djj.sql.add('and (重量2 >'+' '''+edit10.text+''')');
不用参数传递就OK