473,406 Members | 2,620 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,406 software developers and data experts.

How to prevent Error 3052 ?

Hi alls,

I have some code like the following and get errors 3052 while execution :(
Is there any way around it? How can I prevent the locking for all records in
the set? I think I only need the one locked that is edited ??

While Not rst.EOF
With rst

lon = !lon
lat = !lat
actTime = !ptime

dist = fDistSquare(lat, lon, lastLat, lastLon)

.Edit
!distance = dist
.Update

.MoveNext

lastLon = lon
lastLat = lat
lastTime = actTime

End With
Wend
Any ideas??

Thanks Stefan

Nov 12 '05 #1
3 5625
"Stefan Goerres" <li***@gsysteme.de> wrote in message news:<bk************@ID-8437.news.uni-berlin.de>...
Hi alls,

I have some code like the following and get errors 3052 while execution :(
Is there any way around it? How can I prevent the locking for all records in
the set? I think I only need the one locked that is edited ??

While Not rst.EOF
With rst

lon = !lon
lat = !lat
actTime = !ptime

dist = fDistSquare(lat, lon, lastLat, lastLon)

.Edit
!distance = dist
.Update

.MoveNext

lastLon = lon
lastLat = lat
lastTime = actTime

End With
Wend
Any ideas??

Thanks Stefan

What's the SQL that populates the recordset?
Nov 12 '05 #2
Edward wrote:
"Stefan Goerres" <li***@gsysteme.de> wrote in message
news:<bk************@ID-8437.news.uni-berlin.de>...
Hi alls,

I have some code like the following and get errors 3052 while
execution :(
Is there any way around it? How can I prevent the locking for all
records in
the set? I think I only need the one locked that is edited ??

While Not rst.EOF
With rst

lon = !lon
lat = !lat
actTime = !ptime

dist = fDistSquare(lat, lon, lastLat, lastLon)

.Edit
!distance = dist
.Update

.MoveNext

lastLon = lon
lastLat = lat
lastTime = actTime

End With
Wend
Any ideas??

Thanks Stefan

What's the SQL that populates the recordset?


Dim dbsTrackPoints As DAO.Database
Dim rst As DAO.Recordset
'Dim fld As DAO.Field

Set dbsTrackPoints = CurrentDb
Set rst = dbsTrackPoints.OpenRecordset("SELECT * FROM Trackpoint")

Nov 12 '05 #3
Stefan,
I have some code like the following and get errors 3052 while
execution :(
What's the SQL that populates the recordset?
Set rst = dbsTrackPoints.OpenRecordset("SELECT * FROM Trackpoint")


Does it also happen when you select only those fields you really need?

"SELECT lon, lat, ptime, distance FROM Trackpoint;"

Peter

--
No mails please.
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: | last post by:
Some time ago I installed VC# 2003, made a small generic project, compile with the allow unsafe flag and I get the error below: "error CS1577: Assembly generation failed -- Unexpected exception...
0
by: xixi | last post by:
we are using db2 udb v8.1 on win 64 bit with fp3 with type 4 db2jcc.jar driver. such error generated , please help me understand this , thanks 2004-01-12-14.09.02.400000 Instance:DB2 ...
3
by: jamie | last post by:
Hi, I'm trying to delete a whole bunch of records and keep getting the message "File Sharing Lock Count Exceeded (Error 3052)". What is this error and how do I overcome it? Thanks guys.
8
by: | last post by:
Wel, I am rebuilding the VC# 2002 project that I have deployment problems with the 2003 version, hoping this solves the problems, but now I encounter this wierd bug??? If I have the project, and...
2
by: Tony Wilkinson | last post by:
Hi, As a complete novice to C# I have fallen at the first hurdle. Sad but true, I can't get 'Hello World' to work! I have downloaded the .net SDK etc and installed them on my workstation as...
5
by: Raterus | last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions. I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times...
9
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
2
by: Kevin R. | last post by:
I have been ignoring this problem for a few weeks now, but it's becoming a bit annoying not to mention unproductive. Here it goes: I compile my project with no errors. Then after I debug/run it,...
3
by: Access Developer | last post by:
Hi All, Recently encountered problems with "Error 3052 File sharing lock exceeded". I have done some research and found the aswer here on the forum. However, I have the following questions: - 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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.