*-- Create a text string that will be used in inserting new records from DBF to SQL Table TEXT TO cSqlInsert NOSHOW INSERT INTO SITES ( SITE_ID, SITE_DESC, SITE_NO ) VALUES ( ?SITES.SITE_ID, ?SITES.SITE_DESC, ?SITES.SITE_NO ) ENDTEXT *-- Select DBF table (e.g. table "SITES") SELECT SITES lCountRec = 0 *-- Go through all records in the DBF table GO TOP DO WHILE !EOF() *--- Insert the record into the SQL table nResult = SQLEXEC(hCon, cSqlInsert) IF nResult < 1 AERROR( aErrorInf ) *-- Call to my error check routing... IF !Problem_Choice( "SITES", aErrorInf[1,2], RECNO("SITES") ) EXIT ENDIF ELSE *-- Count successfully added record lCountRec = lCountRec + 1 ENDIF SKIP IN SITES ENDDO>the wizard created all table but about of them are empty