R
Raul Sousa
I have this kind of table
Code Date Qty Value Amount
A N 1 5 5
A N+1 -2 Y
B N 2 3 6
The first Qty for a given code is always positive.
If Qty is negative I want Value (Y) to be Equal to the preceding value (5).
In other words if Qty is negative Value (Y) must be equal to the value of the
last positive Qty (5).
I have no idea to solve this problem, so I’m requesting for HELP.
I know no VBA. I build my queries in the QBE.
Code Date Qty Value Amount
A N 1 5 5
A N+1 -2 Y
B N 2 3 6
The first Qty for a given code is always positive.
If Qty is negative I want Value (Y) to be Equal to the preceding value (5).
In other words if Qty is negative Value (Y) must be equal to the value of the
last positive Qty (5).
I have no idea to solve this problem, so I’m requesting for HELP.
I know no VBA. I build my queries in the QBE.