IF !USED('intrancust') USE intrancust IN 0 ENDIF SELECT intrancust INDEX ON stocknum TAG stocknum && it should not be "intrancust" because that's where your tags will be automatically placed. And besides, your order name is descriptive. SET ORDER TO stocknum && instead of SET ORDER TO intrancustWhy not use the Data Environment instead?