MS-Access pivot columns

落花浮王杯 提交于 2019-12-24 19:29:39

问题


I create an MS Access 2007 query where the same customer has multiple project and data appear like:

1 | Foo
1 | Bar
1 | Baz
2 | For
3 | Cad
3 | Cam

and I want to transform it into something like

1 | Foo | Bar | Baz
2 | For |
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:


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.



来源:https://stackoverflow.com/questions/966373/ms-access-pivot-columns

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!