actuaryinworks
Technical User
Hi all,
I am not sure if what I am trying to do is possible at all but I thought I'd post it here to find out.
In a nutshell, I am trying to join column values in a table to headers of another table's columns.
Here is an example:
Table1: Client DB
ClientID FundsAtYearStart
1001 100
1002 120
1003 80
etc..
Table2: Transactions recorded over year:
Transaction 1001 1002 1003 etc...
Deposits 10 0 40
Withdrawls 50 10 20
My tables are a bit more complex, but operate on the same concept.
What I am trying to do is to get a resulting table in the format of Table1 with final amounts. That is FundsAtYearStart from Table1 plus deposits, minus withdrawls from Table2 for each client. The issue is: how do I link to the proper client ID? I'll need to link row1 in Table1 to column2 of Table1, etc.
Any ideas?
I tried to "flatten" the 2nd table to make it into three columns: ClientID, Transaction, Amount, but the query was too complex for Access.
Also, both tables are linked from Excel and are constantly modified in the Excel source file, so I don't have the luxury of "flattening" the second table manually.
Thanks!
I am not sure if what I am trying to do is possible at all but I thought I'd post it here to find out.
In a nutshell, I am trying to join column values in a table to headers of another table's columns.
Here is an example:
Table1: Client DB
ClientID FundsAtYearStart
1001 100
1002 120
1003 80
etc..
Table2: Transactions recorded over year:
Transaction 1001 1002 1003 etc...
Deposits 10 0 40
Withdrawls 50 10 20
My tables are a bit more complex, but operate on the same concept.
What I am trying to do is to get a resulting table in the format of Table1 with final amounts. That is FundsAtYearStart from Table1 plus deposits, minus withdrawls from Table2 for each client. The issue is: how do I link to the proper client ID? I'll need to link row1 in Table1 to column2 of Table1, etc.
Any ideas?
I tried to "flatten" the 2nd table to make it into three columns: ClientID, Transaction, Amount, but the query was too complex for Access.
Also, both tables are linked from Excel and are constantly modified in the Excel source file, so I don't have the luxury of "flattening" the second table manually.
Thanks!