J
Joe Wedel
Greetings!
I am getting the following error when I click the [Save]
button on my form:
Run-time error '-2147217887 (80040e21)':
The Microsoft Jet database engine stopped the process
because you and another user are attempting to change
the same data at the same time.
The code is below. The error occurs at the .Update line,
3rd from the bottom.
Dim rsD As New ADODB.Recordset 'Opens Recordset
Dim strSQL As String 'SQL Statement
'Open recordset
strSQL = "SELECT * FROM tblItems WHERE ItemID=" &
txtItemID & ";"
rsD.Open strSQL, CurrentProject.Connection,
adOpenKeyset, adLockOptimistic
'Update fields
rsD("AgendaSec") = cmbSection
rsD("MeetID") = txtMeetID
rsD("UserName") = UserName
rsD("ItemNumber") = ItemNumber
rsD("Dept") = Dept
rsD("DeptContact") = DeptContact
rsD("CouncilAction") = CouncilAction
rsD("ActionShow") = ActionShow
rsD("ActionReq") = ActionReq
rsD("BackShow") = BackShow
rsD("Backgnd") = Backgnd
rsD("PrevShow") = PrevShow
rsD("PrevAction") = PrevAction
rsD("FundShow") = FundShow
rsD("Funding") = Funding
rsD("KeyShow") = KeyShow
rsD("KeyFeatures") = KeyFeatures
rsD("RecShow") = RecShow
rsD("Recommend") = Recommend
rsD.Update
rsD.Close
Set rsD = Nothing
This application is under development, so there are no
other users. All data is stored in a SQL Server database,
I have linked all tables through an ODBC System DSN. I
get a similar error message if I open the Table (in
Access) and attempt to change data directly in the table
view, when there are no forms or code running. Thanks for
the help!
I am getting the following error when I click the [Save]
button on my form:
Run-time error '-2147217887 (80040e21)':
The Microsoft Jet database engine stopped the process
because you and another user are attempting to change
the same data at the same time.
The code is below. The error occurs at the .Update line,
3rd from the bottom.
Dim rsD As New ADODB.Recordset 'Opens Recordset
Dim strSQL As String 'SQL Statement
'Open recordset
strSQL = "SELECT * FROM tblItems WHERE ItemID=" &
txtItemID & ";"
rsD.Open strSQL, CurrentProject.Connection,
adOpenKeyset, adLockOptimistic
'Update fields
rsD("AgendaSec") = cmbSection
rsD("MeetID") = txtMeetID
rsD("UserName") = UserName
rsD("ItemNumber") = ItemNumber
rsD("Dept") = Dept
rsD("DeptContact") = DeptContact
rsD("CouncilAction") = CouncilAction
rsD("ActionShow") = ActionShow
rsD("ActionReq") = ActionReq
rsD("BackShow") = BackShow
rsD("Backgnd") = Backgnd
rsD("PrevShow") = PrevShow
rsD("PrevAction") = PrevAction
rsD("FundShow") = FundShow
rsD("Funding") = Funding
rsD("KeyShow") = KeyShow
rsD("KeyFeatures") = KeyFeatures
rsD("RecShow") = RecShow
rsD("Recommend") = Recommend
rsD.Update
rsD.Close
Set rsD = Nothing
This application is under development, so there are no
other users. All data is stored in a SQL Server database,
I have linked all tables through an ODBC System DSN. I
get a similar error message if I open the Table (in
Access) and attempt to change data directly in the table
view, when there are no forms or code running. Thanks for
the help!