B
Beginner
Hello!
Yesterday I coded compact and repair to my database. I have a split database
with 5 tables in the back end. Now when I run the code and the compact and
repair in it and right after that open any one of the linked tables from the
front end, I have fields in the table that say "#Error". If I check out the
same table in the back end, it looks normal.
If I don't run the compact and repair code the error doesn't occur.
If I close the front end after running the code with the compact and repair
of the back end and open the front end again, the tables don't have errors
anywhere.
What is going on? The error is "Reserved error (-1517): there is no message
for this error".
I do the compact and repair like this:
DBEngine.CompactDatabase "path to backend", "same folder: temp.mdb"
Kill "backend"
Name "temp" As "backend"
- Beginner -
Yesterday I coded compact and repair to my database. I have a split database
with 5 tables in the back end. Now when I run the code and the compact and
repair in it and right after that open any one of the linked tables from the
front end, I have fields in the table that say "#Error". If I check out the
same table in the back end, it looks normal.
If I don't run the compact and repair code the error doesn't occur.
If I close the front end after running the code with the compact and repair
of the back end and open the front end again, the tables don't have errors
anywhere.
What is going on? The error is "Reserved error (-1517): there is no message
for this error".
I do the compact and repair like this:
DBEngine.CompactDatabase "path to backend", "same folder: temp.mdb"
Kill "backend"
Name "temp" As "backend"
- Beginner -