SELECT 0
USE REP_BAS
SELECT REP_BAL
SET DELETED ON
LOCATE FOR CHK=1
DO WHILE FOUND()
	SELECT REP_BAS
	APPEND BLANK
	REPLACE VEN_NBR WITH REP_BAL.VEN_NBR
	REPLACE ITEM_NBR WITH REP_BAL.ITEM_NBR
	REPLACE PRO_NBR WITH REP_BAL.PRO_NBR
	REPLACE QTY WITH REP_BAL.QTY
	REPLACE IOQTY WITH REP_BAL.IOQTY
	REPLACE THISQTY WITH REP_BAL.THISQTY
	REPLACE BE_DATE WITH REP_BAL.BE_DATE
	REPLACE WARE_NBR WITH REP_BAL.WARE_NBR
	REPLACE TIMES WITH REP_BAL.TIMES
	REPLACE UNIT WITH REP_BAL.UNIT
	REPLACE UN_DESC WITH REP_BAL.UN_DESC
	REPLACE WARE_DESC WITH REP_BAL.WARE_DESC
	REPLACE REGQTY WITH REP_BAL.REGQTY
	REPLACE REGQTYA WITH REP_BAL.REGQTYA
	REPLACE QTY2 WITH REP_BAL.QTY2
	REPLACE COLOR_NBR WITH REP_BAL.COLOR_NBR
	REPLACE ITEM_DESC WITH REP_BAL.ITEM_DESC
	REPLACE PRO_DESC WITH REP_BAL.PRO_DESC
	SELECT REP_BAL
	CONTINUE
ENDDO
SELECT REP_BAS
USE
SELECT REP_BAL
DELETE FOR CHK=1