[英]MS-Access pivot columns
I create an MS Access 2007 query where the same customer has multiple project and data appear like: 我创建了一个MS Access 2007查询,其中同一客户有多个项目,数据显示如下:
1 | 1 | Foo oo
1 | 1 | Bar 酒吧
1 | 1 | Baz 巴兹
2 | 2 | For 对于
3 | 3 | Cad 卡德
3 | 3 | Cam 凸轮
and I want to transform it into something like 我想将其转换为类似
1 | 1 | Foo | 富| Bar | 酒吧 Baz 巴兹
2 | 2 | For | 对于|
3 | 3 | Cad | 镉| Cam | 凸轮|
The goal is to create a spreadsheet view per customer (1,2,3) which can be read from word in order to create mailings per client 目标是为每个客户(1、2、3)创建一个电子表格视图,可以从单词中读取该视图,以便为每个客户创建邮件
There is a very informative Database Journal article that does something similar to what you want; 有一篇非常有启发性的《 数据库期刊》文章 ,其功能与您想要的类似; however, it states that there is no way to this in a query, and so it must be done in VBA. 但是,它指出在查询中无法做到这一点,因此必须在VBA中完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.