if x<>0 && Possible table corruption local lnhandle,ix,lcStr do case case "corrupt"$message() lcStr = "Table "+m.table+" is corrupt!" case "does not exist"$message() lcStr = "Table "+m.table+" does not exist" case x=1705 or "cannot access" $ message() lcStr = Cannot access table "+m.table otherwise lcStr = Cannot access table "+m.table+": "+message()+"!" endcase STRTOFILE(lcStr+CRLF, [c:\BadDBF.TXT], 1) MESSAGEBOX(lcStr+CRLF) && I wrote this line * CLOSE ALL * quit endifBut it shows error messages equal to number of corrupted dbf files.