Hi gurus!
I have a query result set [band] like the following below:
My final view I want is like the one as below, I have already used VBA to create a temp table [tmpBand] with 3 columns, namely FR, UK & US.
What I want is to create an array for each country by looping the record rows. For example, the arrray for US would be Bon Jovi, Green Day, Metalica (linebreak instead of having commas). Then fetch the relevant arrays under the correct country columns.
I tried to insert into [tmpBand] but seems not successful. What I should do?
I have a query result set [band] like the following below:
Code:
Band Country AIR FR Bon Jovi US Oasis UK Blur UK Green Day US Metalica US
Code:
FR UK US
AIR Blur Bon Jovi
Oasis Green Day
Metalica
What I want is to create an array for each country by looping the record rows. For example, the arrray for US would be Bon Jovi, Green Day, Metalica (linebreak instead of having commas). Then fetch the relevant arrays under the correct country columns.
I tried to insert into [tmpBand] but seems not successful. What I should do?
Comment