| 编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛
全能ASP/PHP/ASP.NET主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付学习型 ASP/PHP/ASP.NET 主机 30元/年
高端软件开发 = 年薪十万不是梦   
共有 223 人关注过本帖
标题:已解决)如何指定文本框的数据
收藏  订阅  推荐  打印
jxawgyl
Rank: 3Rank: 3
等级:中级会员
帖子:165
积分:2160
注册:2007-10-16
已解决)如何指定文本框的数据

SQL:select Sum(AllMoney) from AdviceListView where ExecTime>='2008-06-01 00:00:00' and ExecTime<='2008-06-30 00:00:00' and OffName='儿科'
union all
select Sum(AllMoney) from AdviceListView where ExecTime>='2008-06-01 00:00:00' and ExecTime<='2008-06-30 00:00:00' and OffName='内科'
union all
select Sum(AllMoney) from AdviceListView where ExecTime>='2008-06-01 00:00:00' and ExecTime<='2008-06-30 00:00:00' and OffName='外科'

现有三个文本框,如何使文本框1等于select Sum(AllMoney) from AdviceListView where ExecTime>='2008-06-01 00:00:00' and ExecTime<='2008-06-30 00:00:00' and OffName='儿科'
的结果
文本框2等于select Sum(AllMoney) from AdviceListView where ExecTime>='2008-06-01 00:00:00' and ExecTime<='2008-06-30 00:00:00' and OffName='内科'

文本框3等于select Sum(AllMoney) from AdviceListView where ExecTime>='2008-06-01 00:00:00' and ExecTime<='2008-06-30 00:00:00' and OffName='外科'

Form1.Text1 = Adodc1.Recordset.Fields(0)
只有一个数据,如何修改?

[ 本帖最后由 jxawgyl 于 2008-7-19 09:03 编辑 ]
2008-7-7 11:23
共有 222 人关注过本帖
关于我们 | 广告合作 | 编程中国 | 清除Cookies | Archiver | WAP | TOP

编程中国 版权所有,并保留所有权利。鲁ICP备08000592号
Powered by Discuz, Processed in 0.044637 second(s), 9 queries.
Copyright©2004-2008, BCCN.NET, All Rights Reserved