Hi ,
I need help to solve this problem
Problem definition:
I have a table 'tblItemOrdQty' with item name and its order quantities (Lot1,Lot2,Lot3 .... etc). Each items are ordered in different lots. Some are ordered as single lot.. some in two lots.. some in three lots etc.
My objective is to have a new column ( a calculated field) with the value of latest order quantity for each item.
Eg.
Item ID | Item Name | Lot1 | Lot2 | Lot3| Latest Qty (calc.field)
1 | Item1 | 10 | 11 | 14 |14
2 | Item2 | 5 | 4 | null | 4
3 | Item3 |20 | null | null |20
I have made a query 'ItemOrdQuery'w ith Item ID, Item name, Lot 1 , Lot 2, Lot 3. I need to know how to build expression for the Latest Qty calculated field for my desired objective.
Is there any way it can be done using SQL or VBA program using recordsets?
Waiting for your reply.
Thank you for your time.
I need help to solve this problem
Problem definition:
I have a table 'tblItemOrdQty' with item name and its order quantities (Lot1,Lot2,Lot3 .... etc). Each items are ordered in different lots. Some are ordered as single lot.. some in two lots.. some in three lots etc.
My objective is to have a new column ( a calculated field) with the value of latest order quantity for each item.
Eg.
Item ID | Item Name | Lot1 | Lot2 | Lot3| Latest Qty (calc.field)
1 | Item1 | 10 | 11 | 14 |14
2 | Item2 | 5 | 4 | null | 4
3 | Item3 |20 | null | null |20
I have made a query 'ItemOrdQuery'w ith Item ID, Item name, Lot 1 , Lot 2, Lot 3. I need to know how to build expression for the Latest Qty calculated field for my desired objective.
Is there any way it can be done using SQL or VBA program using recordsets?
Waiting for your reply.
Thank you for your time.
Comment