Here is the set up:
Table 1:
[p]AccountsId - AutoNumber
AccountTitle - Text
AccountNumber - Long Integer
BeginningBalance - Currency
Income - Currency
Expenses - Currency
Balance - Currency
Table 2:
[p]FamsId - Autonumber
[f]AccountsId - Long Integer
FamsNumber - Long Integer
The two tables are joined on AccountsId by a Many-One relationship with referential integrity on.
The reason for the seperate tables is this: Some AccountNumbers have multiple FamsNumbers assigned to them. The amount of money in each account is then divided between the FamsNumbers, sometimes an even split and sometimes odd (i.e. 17%, 23%, 60%). if that makes sense?
The tables need to be updated automatically from excel.
The excel import data would look something like this:
AccountNumber Beginning Income Expenses Balance
049253 20,000 5,000 25,000 0
035744 2,000 500 2,500 0
Account '049253' is split 17%, 23%, 60% but '035774' is not split at all. so, the table should look like this after it is imported into access:
AN = AccountNumber
FN = FamsNumber
AN FN Title Beginning Income Expense Balance
049253 40108 xyz 3,400 850 4,250 0
049253 40107 xyz 4,600 1,150 5,750 0
049253 40106 xyz 12,000 3,000 15,000 0
035774 22823 Abc 2,000 500 2,500 0
my thinking led me to this; after the all the data is imported into a temporary table, all the accounts that split up the money need to be put in yet another temporary table and the other can just be imported into the main table. i am not sure if this is the right track, but if it is, i assume i need some kind of if...then...else to to split up the accounts. i need some serious help here, if anyone can help i would greatly appreciate it.
jerry.
Table 1:
[p]AccountsId - AutoNumber
AccountTitle - Text
AccountNumber - Long Integer
BeginningBalance - Currency
Income - Currency
Expenses - Currency
Balance - Currency
Table 2:
[p]FamsId - Autonumber
[f]AccountsId - Long Integer
FamsNumber - Long Integer
The two tables are joined on AccountsId by a Many-One relationship with referential integrity on.
The reason for the seperate tables is this: Some AccountNumbers have multiple FamsNumbers assigned to them. The amount of money in each account is then divided between the FamsNumbers, sometimes an even split and sometimes odd (i.e. 17%, 23%, 60%). if that makes sense?
The tables need to be updated automatically from excel.
The excel import data would look something like this:
AccountNumber Beginning Income Expenses Balance
049253 20,000 5,000 25,000 0
035744 2,000 500 2,500 0
Account '049253' is split 17%, 23%, 60% but '035774' is not split at all. so, the table should look like this after it is imported into access:
AN = AccountNumber
FN = FamsNumber
AN FN Title Beginning Income Expense Balance
049253 40108 xyz 3,400 850 4,250 0
049253 40107 xyz 4,600 1,150 5,750 0
049253 40106 xyz 12,000 3,000 15,000 0
035774 22823 Abc 2,000 500 2,500 0
my thinking led me to this; after the all the data is imported into a temporary table, all the accounts that split up the money need to be put in yet another temporary table and the other can just be imported into the main table. i am not sure if this is the right track, but if it is, i assume i need some kind of if...then...else to to split up the accounts. i need some serious help here, if anyone can help i would greatly appreciate it.
jerry.