You probably will ahave to do something like
for each OrderRel Where OrderRel.company = OrderHed.company AND OrderRel.OrderNum = OrderHed.OrderNum AND
OrderRel.BuyToOrder = TRUE and no-lock no-error.
Instead of the find first.
This will loop you through all orderrelaeases for this orderhead.
[Non-text portions of this message have been removed]
for each OrderRel Where OrderRel.company = OrderHed.company AND OrderRel.OrderNum = OrderHed.OrderNum AND
OrderRel.BuyToOrder = TRUE and no-lock no-error.
Instead of the find first.
This will loop you through all orderrelaeases for this orderhead.
[Non-text portions of this message have been removed]