| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 735 人关注过本帖
标题:已解决)如何指定文本框的数据
只看楼主 加入收藏
jxawgyl
Rank: 1
等 级:新手上路
帖 子:208
专家分:0
注 册:2007-10-16
结帖率:100%
收藏
 问题点数:0 回复次数:0 
已解决)如何指定文本框的数据
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)
只有一个数据,如何修改?

[[it] 本帖最后由 jxawgyl 于 2008-7-19 09:03 编辑 [/it]]
搜索更多相关主题的帖子: SQL 文本 数据 ExecTime Sum 
2008-07-07 11:23
快速回复:已解决)如何指定文本框的数据
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014022 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved