Re: VB 5 app can't open local database
- From: "BogusID" <BogusID@xxxxxxxxxxx>
- Date: Wed, 13 Dec 2006 18:34:15 GMT
"Steve Bowyer" <stephen.bowyer@xxxxxxxxxxxxxxxxxxx> wrote in message
news:eaqdnSbtsfoSE-PYRVnyrQA@xxxxxxxxxxxx
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.
Steve.
Hello Steve,
Does the local folder have an LDB file left behind?
Perhaps there is a user level rights issue on the newer machines?
It's possible IT changed policies and users have local admin rights on the
older computers but not on the new one's?
Try creating a system level ODBC definition for the file, testing at the end
of creation should reveal if that's an issue.
Regards,
David
.
- References:
- VB 5 app can't open local database
- From: Steve Bowyer
- VB 5 app can't open local database
- Prev by Date: Re: Seek Method on Access97 Dbf - with ODBC Connection
- Next by Date: Re: Seek Method on Access97 Dbf - with ODBC Connection
- Previous by thread: Re: VB 5 app can't open local database
- Index(es):
Relevant Pages
|
Loading