Hi,
I have been stumped on a Purchase Order sorting problem.
I'm looking for ideas.
Thanks ahead of time for proceeding...
I have a PO (Purchase Order) report, currently grouped and sorted like this:
Group 1 = PO Number
-- Group 2 = PO Line
----- Group 3 = PO Release
Each PO Number can have multiple lines and releases.
Releases have a "Ship" field, the value in the "Ship" field can vary for each release of a PO Number. "Ship" can be blank too.
I want to group based on this:
- POs with any release that has a value in "Ship"
- POs with no release that has a value in "Ship"
So, something like this:
- New Group - Evaluate Releases (2 possibilities, at least one Rel has a "Ship" value OR all releases have no "Ship" value)
--- Group 1 = PO Number
------ Group 2 = PO Line
--------- Group 3 = PO Release
The idea is that all the POs with a "Ship" value will print, then all the POs without any "Ship" values.
I've been experimenting with a bool variable that keeps track of Ship value as it reads the Releases & resets on the PO Number change.
BTW... The data for the report comes from and XML file generated by a program. There may be a way add custom programming before the XML is generated. Something to add a flag at the PO Number level. I was thinking that would be a last resort.
I have been stumped on a Purchase Order sorting problem.
I'm looking for ideas.
Thanks ahead of time for proceeding...
I have a PO (Purchase Order) report, currently grouped and sorted like this:
Group 1 = PO Number
-- Group 2 = PO Line
----- Group 3 = PO Release
Each PO Number can have multiple lines and releases.
Releases have a "Ship" field, the value in the "Ship" field can vary for each release of a PO Number. "Ship" can be blank too.
I want to group based on this:
- POs with any release that has a value in "Ship"
- POs with no release that has a value in "Ship"
So, something like this:
- New Group - Evaluate Releases (2 possibilities, at least one Rel has a "Ship" value OR all releases have no "Ship" value)
--- Group 1 = PO Number
------ Group 2 = PO Line
--------- Group 3 = PO Release
The idea is that all the POs with a "Ship" value will print, then all the POs without any "Ship" values.
I've been experimenting with a bool variable that keeps track of Ship value as it reads the Releases & resets on the PO Number change.
BTW... The data for the report comes from and XML file generated by a program. There may be a way add custom programming before the XML is generated. Something to add a flag at the PO Number level. I was thinking that would be a last resort.