Hi,
I have an access database table of accounting code information (Chart of Accounts essentially) that has reporting level information in rows that I want to convert to columns in a new access table (which I ultimately want to use in excel pivot reporting) . Example of the table I have and what I am trying to create is below. There are 4 reporting levels 1 - 4. An account with a ReportLevel 1 will always be a header. An account with a ReportLevel 4 will never be a header. An account with ReportLevel 2 or 3 may or may not be a header. If an account isn't a header, then there will be no further levels below it. (ie. if an account is ReportLevel 3 and is not a header, then there will not be a ReportLevel4 applicable to that account). I want to produce a table that shows me the account number of all the reporting levels applicable to any given account. The existing table only gives you the immediate parent account number, but not the parent levels above that (if any). Hopefully the pictures make it clear what I'm on about! I really not sure where to start - hoping someone can point me in the right direction.
thanks
![]()