illusionek
Registered User.
- Local time
- Today, 15:23
- Joined
- Dec 31, 2013
- Messages
- 92
Hi Guys,
I wonder if someone could help me with my problem.
I have a table with order number, products and their stock status. So I may have some orders, where there is enough stock for some lines but not enough for others.
So based on the line status I would like to create an additional column that would give me an overall status of the order based on the status of each line.
So for example, if I can fulfil all lines, I would like to give it a status ‘enough stock’ if I cannot any line, the status would be ‘not enough stock’. So far everything is easy but my problem is that if I have an order with some lines I can fulfil but also some that I cannot, I would like to give it a status ‘not enough stock’.
I have this impression that solution is really easy but I just can’t find it. I tried group by but then still I get two lines for each order, I was thinking about using IIf but then I get information again at the line level.
I have attached an example of table and in the last column there is a status I would like to achieve.
I would be grateful for any help.
Many thanks!!
I wonder if someone could help me with my problem.
I have a table with order number, products and their stock status. So I may have some orders, where there is enough stock for some lines but not enough for others.
So based on the line status I would like to create an additional column that would give me an overall status of the order based on the status of each line.
So for example, if I can fulfil all lines, I would like to give it a status ‘enough stock’ if I cannot any line, the status would be ‘not enough stock’. So far everything is easy but my problem is that if I have an order with some lines I can fulfil but also some that I cannot, I would like to give it a status ‘not enough stock’.
I have this impression that solution is really easy but I just can’t find it. I tried group by but then still I get two lines for each order, I was thinking about using IIf but then I get information again at the line level.
I have attached an example of table and in the last column there is a status I would like to achieve.
I would be grateful for any help.
Many thanks!!