Last couple month I am working on software to track my income and expenses. However I need little bit help.
Right now I make one table for all accounts wit unique ID, and one table for all transactions.
When somebody makes transaction trough form I need now VBA code to save record and if record successfully saved update field BALANCE in tbl_Accounts depend of kind of transaction.
Let say that I have account Bank1, and my balance is 500$
When I make transaction, I need to select type: Income, Expense, and Transfer
If I make transaction 50$ and type is income I need to update my balance to 550$, if is expense my balance need to be 450$, and if is transfer I need two records, one record as prove that I spend 50$ and second that I received 50$ but on another account.
I am not sure is this model alright or maybe is much better to calculate balance based on income and outcome. But sometime I need to make correction to balance because not all transaction will be in database. So I will like just to go to account form and change number.
Thank you,
Right now I make one table for all accounts wit unique ID, and one table for all transactions.
When somebody makes transaction trough form I need now VBA code to save record and if record successfully saved update field BALANCE in tbl_Accounts depend of kind of transaction.
Let say that I have account Bank1, and my balance is 500$
When I make transaction, I need to select type: Income, Expense, and Transfer
If I make transaction 50$ and type is income I need to update my balance to 550$, if is expense my balance need to be 450$, and if is transfer I need two records, one record as prove that I spend 50$ and second that I received 50$ but on another account.
I am not sure is this model alright or maybe is much better to calculate balance based on income and outcome. But sometime I need to make correction to balance because not all transaction will be in database. So I will like just to go to account form and change number.
Thank you,