CAUTION: If you follow the steps in this example, you modify the sample Access project NorthwindCS.adp. You may want to back up the NorthwindCS.adp file and follow these steps on a copy of the project.
Steps to Reproduce Behavior
- Open the sample Access project, NorthwindCS.adp.
- In NorthwindCS.adp, create the following stored procedure, and then run it:
Create Procedure "MakeTestTable"
As
SELECT * INTO tblTest FROM customers
CREATE INDEX tblTest_Index ON tblTest (customerid)
return
- In the Database window, click Tables, and then press F5 to refresh the Tables list.
- Open the tblTest table in Datasheet view. Note that when you open the table in Datasheet view, you cannot edit or add records.
How to Correct the Behavior
You can correct this behavior by running the following stored procedure:
Create Procedure "FixTestTable"
As
DROP INDEX tblTest.tblTest_Index
CREATE UNIQUE INDEX tblTest_Index ON tblTest (customerid)
return