Shyamdharam2
New member
- Local time
- Today, 06:47
- Joined
- Dec 28, 2024
- Messages
- 13
I have two table in my db,
1. Opening table
type
id - autonumber
date - date
Ownerid- number
Nameid - number
debit - number
credit - number
Description - text
2. Bank table
type
id - autonumber
bank - text
date - date
ownerid - number
debit - number
credit - number
nameid- number
narration - text
two table is there,
i want query, that give balance/outstanding of nameid
let Suppose - nameid - 50
in
opening table - 500 /- credit
then , bank table - 600 /- debit
after 500/- credit
then i open query, it's shall show = nameid -50 ( 500 - 600 + 500) = 400/- balance
Basic Calculation: opening table -
Nameid : (sumof credit - sumof debit) + bank table (sumof credit - sumof debit) = balance amount
1. Opening table
type
id - autonumber
date - date
Ownerid- number
Nameid - number
debit - number
credit - number
Description - text
2. Bank table
type
id - autonumber
bank - text
date - date
ownerid - number
debit - number
credit - number
nameid- number
narration - text
two table is there,
i want query, that give balance/outstanding of nameid
let Suppose - nameid - 50
in
opening table - 500 /- credit
then , bank table - 600 /- debit
after 500/- credit
then i open query, it's shall show = nameid -50 ( 500 - 600 + 500) = 400/- balance
Basic Calculation: opening table -
Nameid : (sumof credit - sumof debit) + bank table (sumof credit - sumof debit) = balance amount
Last edited: