Expression to get list from multi related tables

I have a Bank Accounts table as under:

3X_3_d_3d08e4ae2e5ac67c46974a481534aaad6c520c52.png

What I am trying to achieve is to get a list of Account Codes (as “Suggested Values” under Auto Compute for the Account Code field) relevant to the Co Code (as defined in the Co Code field above) though multi related tables as under:
(1) The Co Code field in the above table has a Ref to the Companies table as under:

3X_e_0_e036a72aa989cf8662334dff03e5e2e9f8cfbe68.png

(2) Each Company set up in the above table can have multiple Set of Books (SOB) and the relationship is through the Assign SOB to Companies table as below

3X_e_9_e91cca931829d3721e5f38aa6b2bd97ee046e8b4.png

(3) Each SOB is related to a Chart of Accounts (COA) as under in the Set of Books Table through the COA Id field

3X_a_4_a4991695ac579985ba19d97095c4ca8374b136bd.png

(4) Each Chart of Accounts is related to a COA Lines Table as under: One COA Header record can have multiple COA Lines

3X_d_b_db3424701d4a8ae7c60b9e8b0f65c23f60859214.png

(5) Finally the COA Lines table is as under which has Account Code as a field

3X_f_5_f5278c94fe162ed238c9f62ce20807e97d2a5583.png

So what is the simplest way of achieving this through dereference / reverse dereference expressions as writing multiple nested SELECTs will be complex

Tried various things but keep getting an error saying reference not found

Any help please will be appreciated. Its beyond my current level of proficiency

0 1 103
1 REPLY 1

Set Valid_If in [Co Code] to:
[Related Bank Accounts][Co Code]

Top Labels in this Space