borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How to Convert an Acess DB to MS SQL  Server DB ?)Next Topic (plz,Help required in understanding dao) New Topic New Poll Post Reply
AndreaVB Forum : Database : 3051 error - but why? please help
Poster Message
Dave Green
Level: Professor


Registered: 20-10-2005
Posts: 90

icon 3051 error - but why? please help

Hi all, it's been a year since I've been on here.
Got a problem, help please.
I have an Access db (Stock manager). This is accessed by 2 pcs across the LAN with no problems whatsover using a Stock Manager program written in VB6 using DAO3.6. It is also accessed by the same pcs running a different program that also manipulates the data. This program is also VB6/DAO 3.6.
Now I am very careful to close every recordset and set each to nothing. Nothing is left open. I open, read or write, then close immediately and set to nothing. At the end of the session I also set the db object and workspace object to nothing (after closing both).
However, after I've used this second prog (not the stock manager prog) on my PC (W2k server), the second pc on the LAN (WXP) often (not always) cant open it due to error 3051 - basically saying my one still has it open. But it's not - of that I'm certain (I think). There is no ldb file.
Meanwhile both pcs can still open the db via the stock manager program. By the way the db is actually stored on the second pc (the one that can't open it via the 'other' prog). The only way to clear the problem is to shut down the first (W2k) pc.
The problem never seems to manifest itself the other way round (i.e. PC2 opens prog and prevents PC1).
Help please.


____________________________
While Breath.Count>0
       Live(gbRelax)
Wend

16-03-2007 at 02:32 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : 3051 error - but why? please help
Previous Topic (How to Convert an Acess DB to MS SQL  Server DB ?)Next Topic (plz,Help required in understanding dao) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder