select b.* from detail d join barcodes b on d.po_num = b.po_num and d.style = b.style where d.wo_num = 123456 into cursor csrBcodes *Break this into : select d.po_num as po_num_d,d.style as style_d from detail d where d.wo_num = 123456 order by 1 into cursor csrBcodes nofilter select csrBcodes.style_d,b.* from csrBcodes join barcodes b on csrBcodes.po_num_d = b.po_num order by 1 into cursor csrBcodes nofiler select csrBcodes.* from csrBcodes where style_d = style into cursor csrBcodes nofilerHope this helps
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature