Ok I am using Access 2013 and have a continuous form using a flat table with the following fields:
OrderDate \ Ref \ ItemSize1 \ ItemSize 2 \ ItemSize 3 \ Qty 1 \ Qty 2 \ Qty 3
So eg data would look this:
09/06/15 \ PO123 \ ABC_S \ ABC_M \ ABC_L \ 2 \ 6 \ 8
09/06/15 \ PO123 \ XYZ_8 \ XYZ_10 \ XYZ_12 \ 3 \ 2 \ 7
However, I'm building a file for export that is needed in this format;
OrderDate \ Ref \ Item \ Qty
So the result data would look like this:
09/06/15 \ PO123 \ ABC_S \ 2
09/06/15 \ PO123 \ ABC_M \ 6
09/06/12 \ PO123 \ ABC_L \ 8
and so on.... Points to note:
Item Size 1 uses the qty from qty 1, item size 2 uses qty etc
I am only interested where items sizes have a qty. So if ItemSize 2 had no qty in Qty 2, I would need to miss it out
I have tried a Union query but for some reason it does not sort the size. The result file needs to have the items in order of size (ItemSize1, ItemSize2 etc)
What other way is there in Access to achieve this?
Thanks for any help.
Michael
You might be able to do something like the following: