RE: Opening Access DB From VB 6 Error
From: Nick (anonymous_at_discussions.microsoft.com)
Date: 05/13/04
- Next message: Sharrukin Amiri: "mydb.close"
- Previous message: James W: "Opening Access DB From VB 6 Error"
- In reply to: James W: "Opening Access DB From VB 6 Error"
- Next in thread: James W: "Re: Opening Access DB From VB 6 Error"
- Reply: James W: "Re: Opening Access DB From VB 6 Error"
- Reply: James W: "Re: Opening Access DB From VB 6 Error"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 13 May 2004 06:01:07 -0700
Hi James,
I tested your code and it works fine:
Dim X As Object
Set X = CreateObject("access.application")
X.Visible = True
X.OpenCurrentDatabase "\\mycomputer\myshare\testdisc.mdb"
Set X = Nothing
Though I did notice a typo with regards to the .mdb file.
brg
/Nick
----- James W wrote: -----
When I try to open an Access 2000 database using the following VB 6
script I get the error 7866 Microsoft Access can't open the database
because it is missing, or exclusively locked by another user. I have
checked and the database is where the link says and was not being used
by another user.
Private Sub Command11_Click()
Dim X As Object
Set X = CreateObject("access.application")
X.Visible = True
X.OpenCurrentDatabase
"\\admin\compsect\data\databases\inventory\inventory.mbd"
Set X = Nothing
End Sub
Any help would be appreciated.
- Next message: Sharrukin Amiri: "mydb.close"
- Previous message: James W: "Opening Access DB From VB 6 Error"
- In reply to: James W: "Opening Access DB From VB 6 Error"
- Next in thread: James W: "Re: Opening Access DB From VB 6 Error"
- Reply: James W: "Re: Opening Access DB From VB 6 Error"
- Reply: James W: "Re: Opening Access DB From VB 6 Error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|