• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Fastest way to create table base on database

Dear all,


I have a flat database which look like this:


Area ID_Code Income

Newyork A 500

Manhattan A 1000

Newyork B 250


How can i make another table which sum the income base on ID_code? The new table should look like


Area A B

Newyork 500 250

Manhattan 1000 0


I have been trying to use ms.query but i keep getting syntax error with the sum query

"... sum(iif(
Code:
data$.ID_code=" & chr(34) & "A" & chr (34) & ",data$
.income,0) AS Income FROM ..."


Thanks in advance

PS: Please forgive me if I did not give feedback soon.
 
Back
Top