标题:已解决)如何指定文本框的数据
只看楼主
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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-222915-1-1.html




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

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