VB 5 app can't open local database



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.





.



Relevant Pages

  • Re: Error - Error Accessing File. Network Conn..." File Corruption?
    ... > consuming problem receiving the error message "Error Accessing File. ... > truly clean up an mdb? ... Sometimes the app ... > - Does anyone know of a good site dealing with Access file corruption? ...
    (microsoft.public.access.formscoding)
  • Re: Rapidly expanding MS Access data file size
    ... I suggest you use a temporary .mdb file for the temporary tables. ... delete the bloated .mdb file and start the next import-process-upload ... >I have a small Access 2000 app that whilst working is causing some concern. ...
    (microsoft.public.access.externaldata)
  • What is all that junk in the trunk (DB) ...
    ... I have AC2002 app I have been developing and supporting for over a year. ... CAN ANYONE tell me what is taking up 10 plus megs of space in the MDB file. ... I compact and repair it yet I still have a 10 meg mdb. ... I know my custom toolbars are hiding in there somewhere. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Forced disconnecting
    ... If the only users of the MDB are your applications, ... I have each app check for some kind of "semaphore" ... then it tells them to exit the app or it will be closed for them. ... if your "admin" program that needs exclusive ...
    (borland.public.delphi.database.ado)
  • Re: VB 5 app cant open local database
    ... the app also uses a small 97 .mdb in a folder on the user's ... When properly installed on some new Fujitsu workstations, ... Does the local folder have an LDB file left behind? ...
    (microsoft.public.vb.database)