Approach User Support homepage Approach User Support
Answers to Frequently Asked Questions about Lotus Approach
Examples LotusScripts
Example databases
Links to other Lotus Approach support services

[Return to contents]

Recovering deleted records

Last updated: 28 Nov 2003 by XpertSS.com

If you have compressed the database then the deleted records have been discarded and cannot be recovered. Your only recourse would be to recover using a good recent backup of the database.

If you haven't compressed the database but your database has memo or PicturePlus fields in the deleted records, you can recover the base records but not these types of fields. This is because the "pointer" to them in the .DBT file is zeroed out when the record is marked deleted. These fields would need to be reentered or recovered from a good recent backup of the database by isolating the "deleted records" so that you can export only the fields you need! Or you could take the recovered database and join it to the backup database and copy over the missing fields that way.


Some ways to recover deleted records:
Note that what you need to do is in some way remove the "deleted" tag from the base records in the .DBF file.

1) Get a utility program designed for the purpose.
 
Some utility programs will let you undelete one record at a time, or all deleted records at once, or simple export all records to another set of files.

2) Use the 32-bit ODBC driver and Approach.

You can use ODBC to open your .dbf with Approach and recover deleted base records. If you do not already have the 32-bit ODBC option in your Control Panel, download and install the driver for your operating system from Microsoft's web site.
The following steps were tested on a W95 system:

If you do not have any memo or pictureplus fields, the exported .dbf and .adx files will have all the records restored and can be used in place of the original database. Note that the field names and serial number defaults will not be the same as your original database because ODBC does not use the SmartIndex .ADX file, so you may want to import the exported database into the original database with the update and add records option to add back the deleted records and preserve your field definitions.

If you have memo or pictureplus fields, you should not use the exported database as a substitute. Import the exported database into the original database with the update and add records option to preserve existing records with all fields, add deleted records, and preserve field definitions.


3) Use a text or hex editor program

It is also possible to recover base records by opening the .dbf in a text editor or hex editor, and replacing the asterisk at the beginning of a deleted record with a space character. If you have only one or two records to fix, this may be the simplest method. However, this is not recommended because you may damage the database instead of fixing it! If you decide to try it, use a copy of your .DBF file, PLEASE!

[Return to contents]

© Copyright, JohnBrown, Trademarks, Disclaimer, Acknowledgements.