Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with error message...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00161975
Message ID:
00161979
Views:
17
>I get the following error message and can't find a way around it:
>
>Cannot add this table: it belongs to database d:\mydb\data\mydb.dbc.
>
>This happens when I choose the Add button inside the Project Window and then I choose a specific file, mytable.dbf, from inside a specific folder, d:\mydb\data, to add to the Tables listing inside the Project Window underneath the Data pagetab.
>
>When I try to REMOVE TABLE to free the table, mytable.dbf, I get the following error message:
>
>Cannot find object mytable in the database.
>
>How can I get around this problem?
>Somehow the table thinks it already belongs to the database I am trying to add it to, but I can't add it back into the project window where I will be able to browse the table and modify it.
>
>Thanks for your help.

Close Tables All
Close Data
Open Data MyDB Excl
Validate Database Recover
Use MyTable Excl && delete link if prompted
Use
Modify Data

At this point, do a Database Cleanup (from the menu)

Then try to add the table to the DB. If that does not work, you can close everything, open the DBC as a table (use mydb.dbc), and delete references to the table. There will be a record for the table, and a record for each field. Just identify the ObjectID and ParentID fields to delete the right records.

Backup the 3 DBC files before doing this (DBC, DCX, DCT).
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform