Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memo fields on dbf/fpt file

Status
Not open for further replies.

coned

Technical User
Aug 8, 2003
9
US
I've discovered some corrupted data in some of the memo fields on one of our .dbf files. I used access to update the value in the corrupted fields to null - just to get rid of the corruption. This has caused more trouble than it was worth. It seems that the actual data in memo fields is stored in the related .fpt file and that fpt file is now either missing or invalid. It's not actually missing - I can see it but when I pack and reindex that .dbf it throws the missing or invalid error. What can I do? Can I run a repair utility? Is there one available that's been successful at repairing these types of problems?
This is causing other reports and programs not to be able to run on our system.
thanks.
 
If I understand correctly you have used ACCESS to replace the memo pointer in the DBF by a .NULL. value. In doing so you basically broke the link between your DBF records and the corresponding memo data. Your only hope is to restore memo pointers from a backup copy.

Good luck

Jean
 
I have backups - how would I go about restoring the memo pointers?
 
Also take a look at this thread:


thread184-625696
 
Try this:
Restore your DBF,FPT and CDX (if there is one) in a directory. Assuming MyKey is your Primary key
Code:
USE C:\MyData\MyFile IN 0 EXCLUSIVE
USE C:\MyBackUp\Myfile IN 0 EXCLUSIVE ALIAS MyBackUp
SELECT MyFile
REPLACE MyFile.MyMemo WITH MyBackUp.MyMemo FOR MyFile.MyKey = MyBackUp.MyKey
use in MyBackUp

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top