Hello,
I have a puzzle that I can't quite figure out.
Components:
1. Qty - In Parentheses ()
2. LnNum - separated by Commas
3. Item - Unique Item with many line (order) numbers and different quantities.
I have a unique Item that splits into Multiple records based on my order qty (in parentheses).
Item 5/20/2013 5/21/2013 5/22/2013 5/23/2013 5/24/2013
1A , () , () , () 48 (1) , ()
1A 42, 43 (2) 44, 45 (2) , () , () 51, 52 (2)
Any idea how I can get it to ignore the qty difference and just combine all the data for a unique part into one record like so?
Item 5/20/2013 5/21/2013 5/22/2013 5/23/2013 5/24/2013
1A 42, 43 (2) 44, 45 (2) , () 48 (1) 51, 52 (2)
**Check the attachments (below) for a cleaner look at the output. **
My transform statement reads as follows
IIf(IIf(IsNumeric(Max([LnNum]))=True,"",Max([LnNum]))=IIf(IsNumeric(Min([LnNum]))=False,Min([LnNum]),""),Min([LnNum]),IIf(IsNumeric(Max([LnNum]))=True,"",Max([LnNum])) & ", " & IIf(IsNumeric(Min([LnNum]))=False,Min([LnNum]),"")) & " (" & ([OrdQ]) & ") " AS Line
Any ideas as to how I can effect my desired result, would I need to employ an arrays to do what I want and, if so, what might that look like? Many thanks!
JO
I have a puzzle that I can't quite figure out.
Components:
1. Qty - In Parentheses ()
2. LnNum - separated by Commas
3. Item - Unique Item with many line (order) numbers and different quantities.
I have a unique Item that splits into Multiple records based on my order qty (in parentheses).
Item 5/20/2013 5/21/2013 5/22/2013 5/23/2013 5/24/2013
1A , () , () , () 48 (1) , ()
1A 42, 43 (2) 44, 45 (2) , () , () 51, 52 (2)
Any idea how I can get it to ignore the qty difference and just combine all the data for a unique part into one record like so?
Item 5/20/2013 5/21/2013 5/22/2013 5/23/2013 5/24/2013
1A 42, 43 (2) 44, 45 (2) , () 48 (1) 51, 52 (2)
**Check the attachments (below) for a cleaner look at the output. **
My transform statement reads as follows
IIf(IIf(IsNumeric(Max([LnNum]))=True,"",Max([LnNum]))=IIf(IsNumeric(Min([LnNum]))=False,Min([LnNum]),""),Min([LnNum]),IIf(IsNumeric(Max([LnNum]))=True,"",Max([LnNum])) & ", " & IIf(IsNumeric(Min([LnNum]))=False,Min([LnNum]),"")) & " (" & ([OrdQ]) & ") " AS Line
Any ideas as to how I can effect my desired result, would I need to employ an arrays to do what I want and, if so, what might that look like? Many thanks!
JO