|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
求助朋友们:Select语句中 “0 as 新字段”用法出现的问题:无法生成数值字段,如图(双击数据透视表后的明细数据)
急待回复啊,非常感谢!
语句如下:
select "301项目合同一览表" as 数据来源,记录序号,0 AS 日期,"" AS 年月,项目编码,项目名称,行业,区域,"" AS 负责人,"" AS 项目状态,"" AS 项目阶段,"" AS 费用项目编码,"" AS 费用项目,"" AS 一级分类,"" AS 二级分类,"" AS 资金详细用途,"" AS 费用属性,0 as 运营费用金额,0 as 工程费用金额,0 as 咨询费用金额,0 as 奖金金额,合同金额,0 as 采购成本 from [301项目合同一览表$A5:R60000] union all
select "30201项目采购付款流水账" as 数据来源,记录序号,日期,年月,项目编码,项目名称,行业,区域,"" AS 负责人,"" AS 项目状态,"" AS 项目阶段,"" AS 费用项目编码,"" AS 费用项目,"" AS 一级分类,"" AS 二级分类,"" AS 资金详细用途,"" AS 费用属性,0 as 运营费用金额,0 as 工程费用金额,0 as 咨询费用金额,0 as 奖金金额,0 as 合同金额,采购成本 from [30201项目采购付款流水账$A5:P60000]
[ 本帖最后由 FENGJUN 于 2009-9-1 16:58 编辑 ] |
|