起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 137|回复: 1

透视数据集的过滤**

[复制链接]
发表于 2008-11-10 16:52:49 | 显示全部楼层 |阅读模式
我想在表格文档中显示透视数据集中每个月的最后一天的数据,
里面有年,月,日字段,是行字段,
TSqlDataSet(DataSetBroker1.dataSet).SQLFilter:=' year='''+jiansuo.Year+''' and month='''+jiansuo.Month+'''';
          TSqlDataSet(DataSetBroker1.dataSet).SQLFiltered:= true;
          TSqlDataSet(DataSetBroker1.dataSet).SQLFilter:=' year='''+jiansuo.Year+''' and month='''+jiansuo.Month+'''';
          TSqlDataSet(DataSetBroker1.dataSet).SQLFiltered:= true;          DataSetBroker1.dataSet.Open;
          DataSetBroker1.dataSet.Last;
          TSqlDataSet(DataSetBroker1.dataSet).SQLFilter:=' year='''+jiansuo.Year+''' and month='''+jiansuo.Month+''' and dates='''+DataSetBroker1.DataSet.FieldByName('dates').AsString+'''';
          TSqlDataSet(DataSetBroker1.dataSet).SQLFiltered:= true;

DataSetBroker1是透视数据集,提示'dates'字段未定义
回复

使用道具 举报

发表于 2008-11-10 16:56:04 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-7-27 16:51 , Processed in 0.040779 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表