hello vbforums
I have a very complicated query I'm asking experts if it is possible to run this query.
This is my table
Attachment 180822
![Name: pic1.png
Views: 46
Size: 5.4 KB]()
As shown in table the record has a debt of 60 + 10 + 20 = 90 E
Now the record pays 80 E, My question:
Is it possible to distribute the 80E on the 3 items?
In other words:
Item1 ..... (+ 60 = 100) (remain = 0)
Item2 ...... (+ 10 = 20) (remain = 0)
Item3 ...... (+ 10 = 20) (remain = 10)
If this is possible , how would be the query please?
Thank you
I have a very complicated query I'm asking experts if it is possible to run this query.
This is my table
Attachment 180822
As shown in table the record has a debt of 60 + 10 + 20 = 90 E
Now the record pays 80 E, My question:
Is it possible to distribute the 80E on the 3 items?
In other words:
Item1 ..... (+ 60 = 100) (remain = 0)
Item2 ...... (+ 10 = 20) (remain = 0)
Item3 ...... (+ 10 = 20) (remain = 10)
If this is possible , how would be the query please?
Thank you