303factory
Registered User.
- Local time
- Today, 14:11
- Joined
- Oct 10, 2008
- Messages
- 136
Hi
I'm having some trouble with updating recordsets by code since I moved to MySQL back end and was wondering if the code shoudl be any different.
My code is always in the above format, recordsets are opened and closed in this manner frequently, sometimes when another recordset on a different table is open.
The problem is my code seems to frequently throw up the 'the microsoft jet engine stopped the process because you and another user are attempting to change the data at the same time ' error. This happens on the RS.Update line. It seems to happen more often if the data is being updated to the same set of data (ie no changes).
I've googled to see if my syntax shoudl have changed for mysql, and googled the error message but after about 5 hours investigating have failed to come up with a solution..
Anyone encountered the same problem as me here?
I'm having some trouble with updating recordsets by code since I moved to MySQL back end and was wondering if the code shoudl be any different.
Code:
Set RS = New ADODB.Recordset
strSQL = "SELECT * FROM tblExhibitInfo WHERE Exhibit =" & Me.Exhibit
RS.Open strSQL, gMIDdbase, adOpenKeyset, adLockOptimistic, adCmdText
RS.Fields("Name") = Me.Name
RS.Fields("Number") = Me.Number
RS.Update
RS.Close
Set RS = nothing
My code is always in the above format, recordsets are opened and closed in this manner frequently, sometimes when another recordset on a different table is open.
The problem is my code seems to frequently throw up the 'the microsoft jet engine stopped the process because you and another user are attempting to change the data at the same time ' error. This happens on the RS.Update line. It seems to happen more often if the data is being updated to the same set of data (ie no changes).
I've googled to see if my syntax shoudl have changed for mysql, and googled the error message but after about 5 hours investigating have failed to come up with a solution..
Anyone encountered the same problem as me here?