Hello everybody,
I am trying to make an Accounting system in Access. Few parts have been designed but got stuck in one particular part. I am attaching the Access file for your kind analysis. In the file there are two tables- 1st one is ChartOfAccounts which acts as a lookup table. It holds the Account code, Name of the unique accounts and their Normal Balance (ie whether it is Debit or Credit).
The 2nd table is the Transaction table which by definition holds all the transaction. It has the columns- Transaction ID, which is auto number; Date of transaction; Account id which looks up its value from ChartOfAccounts table; Account name which also looks up its value from ChartOfAccounts table; Type, which states whether the account is debited or credited for that transaction and lastly the Amount. Now there is a catch in the table. By the rule of accounting if an account with normal balance of debit is debited (normal balances are all stated in the ChartOfAccounts table for each account) the value get added and if it is credited, the value gets subtracted and for an account with normal balance of credit, if credited, the value gets added and if debited, the value gets subtracted. Hence if you look at the transaction, both building and cash are once debited and once credited. Both of their normal balances as stated in the ChartOfAccounts, are debit. So, depending on the Type column’s value, the Amount column’s value should be positive or negative. How do I do this?
The Ledger is a query which adds up all the accounts’ value and show their balances.
The Journal is a form which feeds into the Transaction table. But it also has a catch. By the rule of Double Entry accounting every transaction should have at least one debit entry and one credit entry and total debit value should equate to total credit value. It can be more than that. Like two debit entry and three credit entry in one transaction and so on. Hence I want to keep an option for that in the form, so, if the total value of debit and credit entries are not equal, the form won’t let anything to be posted to the Transaction table. There could be a button for posting and couple of combo boxes to provide for if a transaction has multiple debit or credit entry. How to make this happen?
ERP.zip
Thanks in advance for any clue.