2013-07-15 169 views
0
Select [Trader],[Reference] , [Type of Establishment], [Fruit Sold], [Stat Licence] 
from Tablex 
where [Type of Establishment]='D/03288' 
and [Stat Licence]='Licenced' 

圖1 - 樣品結果分組列的結果集

Trader,Reference , Type of Establishment, Fruit Sold, Stat Licnece 
Lady Daves Foxes, D/03288, Licenced, Bananas , Y_T_177 
Lady Daves Foxes, D/03288, Licenced, Apples , Y_T_177` 
Lady Daves Foxes, D/03288, Licenced, Pears , Y_T_177` 

現在怎麼辦,我得到的結果在Microsoft Access設置如下更改SQL視圖?

圖1 - 我想要什麼?

Trader,Reference , Type of Establishment, Fruit Sold, Stat Licnece

Lady Daves Foxes, D/03288, Licenced, Bananas,Apples,Pear , Y_T_177

假設我需要的水果銷往列莫名其妙的支點?

+0

如果你可以使用VBA函數的第一個答案,這個帖子給出瞭解決方案:Microsoft Access中凝結表中的多個行(http://stackoverflow.com/questions/ 5174362/microsoft-access-condense-multiple-lines-in-a-table/5174843#5174843) – jpw

+0

第一個選擇是使用SQL View窗口修改sql。感謝這篇文章。沒有太多經驗實施這些功能是SQL,所以看起來很可怕。 –

回答