473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VB6 Runrime error Could not Update currently locked

134 100+
Hi, I am using ADO, sometime I got an error message Could not update currently lock, and sometime I don;t . Error stop in last sentence "Rsumm.Update" , Before exit the program I have use rsumm.close and
set rsumm = Nothing

I am lost could someone advise me.


Set rs = New Recordset
rs.LockType = adLockPessimistic
rs.CursorType = adOpenDynamic
rs.CursorLocation = adUseClient
rs.ActiveConnection = conn
rs.Open "Select * from Process where SN = '" & txtSN & "'", conn

Set rsSumm = New Recordset
rsSumm.LockType = adLockPessimistic
rsSumm.CursorType = adOpenDynamic
rsSumm.CursorLocation = adUseClient
rsSumm.ActiveConnection = conn
rsSumm.Open "Select * from Summary where SN = '" & txtSN.Text & "'", conn






If Option3 = True Then
rs("Failurecode") = txtFailure
rs("Measure1") = txtComponent
rs("Repair1") = txtComponent
rs("Repair1By") = UserID
rs("Repair1Date") = Now()
rs("Measure1Date") = Now()
rs("Measure1By") = UserID
rs("NextProcess1") = "Debug2"
rs.update
rsSumm("Process") = "Debug2"
rsSumm("Status") = "WIP"
rsSumm("CurrentDebug") = 1
rsSumm.update
End If
Jul 13 '08 #1
4 2418
debasisdas
8,127 Expert 4TB
is it such that multiple users are trying to execute some DML on the same database table ?
Jul 14 '08 #2
jamesnkk
134 100+
is it such that multiple users are trying to execute some DML on the same database table ?
No, I am the only one using , it just pure ms access database
Jul 14 '08 #3
debasisdas
8,127 Expert 4TB
is there any relationship between both the recordsets ?

Try to use rs.addnew or rs.edit before using rs.update .
Jul 14 '08 #4
jamesnkk
134 100+
is there any relationship between both the recordsets ?

Try to use rs.addnew or rs.edit before using rs.update .
No relationship, It only show rs.editmode no rs.edit, could you explain a bit more ? I cannot rs.edit it display method or data not found.
Jul 14 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ray | last post by:
I am having my first experience using BLOB as a row in a table. I am using it to insert graphics for labels we print. I have no problem inserting into and select from the table. The graphic is...
1
by: Andrew Donnelly | last post by:
I am trying to update a memo field in a table from a form that I have created. The form is unbound, and once the user makes their changes, they have to click the continue button. Once the button...
7
by: Mathew Butler | last post by:
I'm investigating an issue I have when pulling data back from MS access I'm retrieving all rows from a column in a table of 5000 rows - accessing a column of type "memo" ( can be 65353 character...
0
by: Tommy B | last post by:
I'm currently working on a casino script for an IRC bot. I was going to make a flat file database, but I decided to make it sqlite after some suggestions. I'm using pysqlite. ...
1
by: amindi | last post by:
Hi, I wrote a VB6 program to read some data records from a Ms Access database and to write them into a SQL server database.(I use Ms Access 2000 and SQL server 2000).After reading each record in...
2
by: LEX | last post by:
Could not update; currently locked by another session on this machine. Can someone help me figure out why access gives me this error on some record's memo fields but not on others?
2
by: mike2020 | last post by:
I am using VB 6, ADO and Access in my Apps. I have one table which has a Memo field, and while saving recordset (rs.Update), at that point I am receiving the following error "Could not save;...
6
by: stuart | last post by:
I have 2 users who ran into a problem with a data entry program (written in Access 2003). One user was keying into one of the forms when she got the message "ACCESS Error Number: 3218 Could not...
5
by: prakashwadhwani | last post by:
The Delete Event/Proc & "Save_Fields_In_Form_Header" Event/Proc in my form were working perfectly. However, after I added a call to the "Save_Fields_In_Form_Header" Event/Proc in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.