MSAccessRookie
AWF VIP
- Local time
- Today, 10:58
- Joined
- May 2, 2008
- Messages
- 3,428
My group is currently reaching the end of an Access 2003/SQL Server 2005 Migration Project.
Users are able to enter Records into the Table, but are not able to Modify or Delete them once they are entered.
If a user attempts to MODIFY a record, an MS Access Error Message appears.
This record has been changed by another user since you started editing it.
If a user attempts to DELETE a record, an MS Access Error Message appears.
The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time.
Note that in each case, there is only one user using the database during the test (as far as we can tell).
The Table having the problem is the only Table that also contains an AutoNumber Field, and we are looking into what (if any) that fact contributes to the problem.
Has anyone else had any similar issues with Tables Linked to SQL Server?
UPDATE:
The problem has been resolved. Apparently, MS Access is unable to determine the update status of a record in a Foreign Database, nad uses a combination of "Optimistic Locking" and Field Data comparison to determine the status, and this does not always work. In my case, it worked when we were adding, but not when we were updating or deleting.
The end result is that we needed to modify each Table on the SQL Server to add a new field (type Timestamp) called tStamp at the end of the record. Once that was in place, all of the problems went away.
- The original system has a standard Front End/Back End setup with about 35 Tables in the back End.
- The first Phase of the Project required that four of the Tables be migrated to SQL Server while the remaining Tables would remain in Access and the Front End would in effect have two Back Ends (One in MS Access and one on SQL Server)
- The SQL Server Tables were created using the MS Access 2003 Export Option.
- The Tables were compared and appeared to be the same in structure
- The Data was compared and verified as the same
Users are able to enter Records into the Table, but are not able to Modify or Delete them once they are entered.
If a user attempts to MODIFY a record, an MS Access Error Message appears.
This record has been changed by another user since you started editing it.
If a user attempts to DELETE a record, an MS Access Error Message appears.
The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time.
Note that in each case, there is only one user using the database during the test (as far as we can tell).
The Table having the problem is the only Table that also contains an AutoNumber Field, and we are looking into what (if any) that fact contributes to the problem.
Has anyone else had any similar issues with Tables Linked to SQL Server?
UPDATE:
The problem has been resolved. Apparently, MS Access is unable to determine the update status of a record in a Foreign Database, nad uses a combination of "Optimistic Locking" and Field Data comparison to determine the status, and this does not always work. In my case, it worked when we were adding, but not when we were updating or deleting.
The end result is that we needed to modify each Table on the SQL Server to add a new field (type Timestamp) called tStamp at the end of the record. Once that was in place, all of the problems went away.
Last edited: