>scan > lnOrder = tempOrder.OnOrder > replace onorder WITH onorder + m.lnOrder, ; > plabel WITH .T., ; > howmany WITH IIF(categoryid = "8",1,m.lnOrder) in Styles >endscanHey, I'm willing to try anything! Right now, I am waiting for feedback on the "in styles", and I have also changed the code to individual REPLACE statements. It just boggles my mind that the same field reference sometimes fails in the same line of code.