>Hi All:
>
>My client is getting the following error on a USE in an accounting program:
>
>Error 2065: Table "Blarg" has a file length / record count inconsistency. The table will need to be repaired before transactions can be committed properly.
>
>I get a similar error message when I try to USE the table from native VFP:
>
>Table "Blarg" has become corrupted. The table will need to be rapaired before using again.
>
>Is there anything that can be done short of restoring from the last known good backup?
>
>Thanks,
>
>Yossi
You can try (there is no guarantee that this will work):
Just make sure that you have a good copy of all tables.
lnValidate = SET("TABLEVALIDATE")
SET TABLEVALIDATE TO 0
USE Blarg EXCLUSIVE
COPY TO TestBlarg
ZAP
APPEND FROM TestBlarg
ERASE ("TestBlarg.*)
USE
SET TABLEVALIDATE TO lnValidate
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.