I have a parent form with unique record with 3 fields, business id, journal id and journal date.
Each journal entry in the parent form has, several account details records in subform with amount field.
I am trying to say for each journal entry, sum up all the amounts in amount field, if it is positive, display it as debit and if it is negative display it as credit.
If credit and debit don’t balance, query only those records that don’t show balance of credit and debit.
So how should I do that.
How should my SQL statements look like.
Thanks
Each journal entry in the parent form has, several account details records in subform with amount field.
I am trying to say for each journal entry, sum up all the amounts in amount field, if it is positive, display it as debit and if it is negative display it as credit.
If credit and debit don’t balance, query only those records that don’t show balance of credit and debit.
So how should I do that.
How should my SQL statements look like.
Thanks