Re: VB 5 app can't open local database
- From: Paul Clement <UseAdddressAtEndofMessage@xxxxxxxxxxxxxx>
- Date: Tue, 12 Dec 2006 14:53:51 -0600
On Tue, 12 Dec 2006 11:12:14 -0000, "Steve Bowyer" <stephen.bowyer@xxxxxxxxxxxxxxxxxxx> wrote:
¤ My VB5 app uses an Access 97 database located on a shared drive. At certain
¤ times, the app also uses a small 97 .mdb in a folder on the user's local c
¤ drive. When properly installed on some new Fujitsu workstations, the app
¤ fails when trying to open this local .mdb with the message:
¤
¤ Error 3051. The Microsoft Jet database engine cannot open the file
¤ 'c:\rcanet\tempdb\temp.mdb'. It is already opened by another user, or you
¤ need permission to view its data.'
¤
¤ The code at this point is as follows:
¤
¤ On Error GoTo errorhandler
¤ Dim tdb As Database: Set tdb = ws.OpenDatabase("c:\rcanet\tempdb\temp.mdb")
¤ Dim invtab As Recordset: Set invtab = tdb.OpenRecordset("tempint")
¤ Dim sqla As String
¤ Dim myrset As Recordset
¤ 'Clear any records from the tempint table
¤ tdb.Execute "DELETE tempint.* FROM tempint;"
¤ Screen.MousePointer = 11
¤
¤ The same executable file for the app has been working fine on other older
¤ workstations, and the app continues to be able to open the main, remotely
¤ located .mdb on the new workstations. The new workstations are XP, the
¤ older ones are a mix of 2000 and XP.
¤
¤ Would be grateful for any tips as to what might be going on here.
You may want to check if any other processes are opening the file:
http://www.microsoft.com/technet/sysinternals/utilities/ProcessExplorer.mspx
http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx
You can also check the .LDB file in order to see all the users who have a connection to the
database:
http://support.microsoft.com/kb/176670
BTW, Jet 4.0 databases (Access 2000 and higher) handle this issue better.
Paul
~~~~
Microsoft MVP (Visual Basic)
.
- References:
- VB 5 app can't open local database
- From: Steve Bowyer
- VB 5 app can't open local database
- Prev by Date: VB 5 app can't open local database
- Next by Date: Re: Seek Method on Access97 Dbf - with ODBC Connection
- Previous by thread: VB 5 app can't open local database
- Next by thread: Re: VB 5 app can't open local database
- Index(es):
Relevant Pages
|
Loading