Hi -
Recently a user asked me to delete a record from our database (through the back end, the database is split and password protected) which I've done many times with no problems.
However this time, the result is a record that has #DELETE written in each field of the record and I am not able to delete this record. So, I used the Compact and Repair function in Access 2007 (the DB is saved as MDB not the 2007 format) and it removed this corrupted record, however it also changed the structure of the DB.
Originally the tblserviceaddress was linked to tblcontractdetails using an auto-generated number that was indexed and unique, but after the Compact and Repair was finished, it removed the indexing of the auto-generated number field along with the associated link to the other table.
I tried to change the property of the ID field to be "indexed (no duplicates)" and it allows me to do it but when I try to relink the tables it gives me the following error:
Microsoft Access can't create this relationship and enforce referential integrity.
Of course I backed up before compacting the db so I've restored it to that, but this does leave me with two questions:
1 - How do I delete the record that contains all of the fields with #DELETE in them
2 - How do I fix this error I am having with Compacting and Repairing?
Thanks!
Recently a user asked me to delete a record from our database (through the back end, the database is split and password protected) which I've done many times with no problems.
However this time, the result is a record that has #DELETE written in each field of the record and I am not able to delete this record. So, I used the Compact and Repair function in Access 2007 (the DB is saved as MDB not the 2007 format) and it removed this corrupted record, however it also changed the structure of the DB.
Originally the tblserviceaddress was linked to tblcontractdetails using an auto-generated number that was indexed and unique, but after the Compact and Repair was finished, it removed the indexing of the auto-generated number field along with the associated link to the other table.
I tried to change the property of the ID field to be "indexed (no duplicates)" and it allows me to do it but when I try to relink the tables it gives me the following error:
Microsoft Access can't create this relationship and enforce referential integrity.
Of course I backed up before compacting the db so I've restored it to that, but this does leave me with two questions:
1 - How do I delete the record that contains all of the fields with #DELETE in them
2 - How do I fix this error I am having with Compacting and Repairing?
Thanks!