OK here goes.
I have an Access 2000 database that is hit by multiple users. I have many table that depend heavily on their primary keys. There are daily imports that run and if the tables are missing their primary keys they are populated with a lot of duplicates. A compact and repair is run every morning after the import and sometimes due to corrupted records, a MsysCompactError table is created and I lose the primary keys off some of my tables. I want to create some kind of function that will search through some or all of my tables each day and determine if a specific table still has a primary key associated with it. I could store these results in a table and then maybe create a report to get the info. Does anyone have any ideas as to where I might start in creating this function.
Thanks for any help.
I have an Access 2000 database that is hit by multiple users. I have many table that depend heavily on their primary keys. There are daily imports that run and if the tables are missing their primary keys they are populated with a lot of duplicates. A compact and repair is run every morning after the import and sometimes due to corrupted records, a MsysCompactError table is created and I lose the primary keys off some of my tables. I want to create some kind of function that will search through some or all of my tables each day and determine if a specific table still has a primary key associated with it. I could store these results in a table and then maybe create a report to get the info. Does anyone have any ideas as to where I might start in creating this function.
Thanks for any help.