To minimize possibility of corruption, don't keep the table open all the time: Open table, Add record(s), Close.
>I'm using a small, quick and dirty prg to do some data transforming and I have a small function call log wich simply adds an event to a dbf log table . The production machine is often rebooted or the power is cut (that can't be changed). When that happens, the log dbf becomes corrupt (it is always opened during the program execution and the program is designed to run all the time).
>Is there a way to ensure that the DBF not become corrupt after a reboot or system hang?
>
>TIA
--sb--