SELECT MyCursor ZAP INSERT INTO MyCursor SELECT .... FROM NewTable thisform.Refresh()That way you don't need to change anything.
thisform.ChangeSource(NULL) USE IN OldTable SELECT 0 USE NewTable thisform.ChangeSource([NewTableName]) *** thisform.ChangeSource() LPARAMETERS lcTableName FOR EACH oControl IN thisform.Controls IF UPPER(oControl.BaseClass) == [TEXTBOX] IF ISNULL(lcTableName) *** Save old ControlSource in TAG property of TextBox oControl.Tag = oControl.ControlSource *** Set ControlSource to NULL, so it wont complains when we close Table oControl.ControlSource = NULL ELSE *** Set ControlSource to NewTable, and field name we get from TAG oControl.ControlSource = lcTableName+[.]+JUSTEXT(oControl.Tag) ENDIF ENDIF NEXT(not tested)