I understand that dbf contains the path to the dbc. I'm interested in how to duplicate this error.
I have tried to move a dbf away from its associated dbc and use it. But this will only get the dialogue to "Would you like to try to locate the owning database or delete the link...?
I have tried to delete a dbf and then validate database. This will only yield cannot find the file...
Try copying a table to a temp location,
drop the table from the DBC,
copy the table back,
then try to open the table.
Without an ON ERROR routine, you get a message "Cannot link table ... with its database.... would you like to try to locate the owning database....", With an ON ERROR, you get
error 1976.
The help says of it:
Cannot resolve backlink (Error 1976)
Visual FoxPro was unable to successfully match a table with its database.
Use VALIDATE DATABASE to verify the links in the database.
Instead of just moving dbfs around that are in a database, use the "FREE TABLE tablename" command to remove the backlink.
Just to clarify -- for the benefit of anyone not familiar with this area: FREE TABLE should only be used to resolve the sort of problem that Pctest mentioned. Don't use it merely to remove a table from a database, for which you should use REMOVE TABLE instead.
Even with REMOVE TABLE, you will lose all the validation rules, triggers, default values, long field names and other DBC-based information held for the table.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.