Exceptionally close Graham.
It appears to be correct if the flags are in the first rows under the detail section, but if the flag is on line item 2 within the details it is resulting in "Both" even though only one flag was present is the detial data set
I.E.
name product type
Mr Smith Stationary LOX
Mr Smith Nebulizer
Mr Smith Concentrator
result: LOX
Mr Smith Concentrator
Mr Smith Stationary LOX
Mr Smith Nebulizer
result: BOTH
Mr Smith Cylinder CG
Mr Smith Concentrator
Mr Smith Stationary LOX
result: CG
There seems to be a tie to line item number within the data set. Is there something in the code missing?
I really appreciate your reply, I am so close to getting the report to work.
Thanks,