| re: Need help with accounting database
My approach:
Have two table. One with your client's name, addy, and so on. No
balances needed here at this point.
The other with
TransID -- Auto Increment
Customer ID -- Same as you noted above
Trans Date -- Date of the Transaction
MonthEnd -- The month end of the transaction occured.
DateSerial(Year(Trans Date),Month(Trans Date)+1,1) which can be updated
with a query on a form closed.
TransactionType - Pmt, Service Charges, Interest, etc.
Amount - Payments should be negative. Service charge, and interest
should be positive.
On a report create you can use create a calculation Beg Bal.
dsum("[Amount]","tblTransaction","CustID = " & chr$(34) & [CustID] &
chr$(34) & "[MonthEnd] < " & [MonthSelected] &))
The ending bal Calulation is dsum("[Amount]","tblTransaction","CustID =
" & chr$(34) & [CustID] & chr$(34) & "[MonthEnd] <= " &
[MonthSelected] &))
Notice I have ditched the prev and currentBalDue fields in any table.
This is not exactly correct, but should give you ideas on how to
proceed. |