Unable to open database from shared folder in Excel VBA

Posted: 11-26-2008, 03:34 PM
I have an Excel spreadsheet originally developed in Excel 2000, in which
users enter data in their own workstation and click a button to transfer the
data to a centralized database. It works perfectly in Excel 2003, but have
problems in the new machines we bought (running Windows Vista Ultimate and
Office 2007). I got a run-time error saying that method 'OpenCurrentdatabase'
of object '_Application' failed.

It works if I moved the database to my local hard drive, so I suspect the
problem is about network and sharing of files in Windows Vista (I can see and
open the database from Windows Explorer). We have a peer-to-peer network with
a computer designated as a database server, running MS Windows 98 SE without
MS Office. The folder MASTER-DB is in full access with no password.

Dim appAccess As Variant
Dim dbCurrent As Variant

Set appAccess = CreateObject("Access.Application")
appAccess.Opencurrentdatabase "\\COMP 45 - NET S\MASTER-DB\Master.mdb"

Set dbCurrent = appAccess.CurrentDb
....

Any help would be greatly appreciated!!

Thanks,
Sarah



Reply With Quote

Responses to "Unable to open database from shared folder in Excel VBA"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot open shared access database from vista Joseph Tohme Windows Vista Networking & Sharing 2 03-10-2008 02:08 AM
Can Excel 2008 open an xml file from and online database Mitched@officeformac.com Mac Office 1 01-17-2008 11:33 AM
Excel 2007 - Unable to open an any excel file a second time boatman Mac Office Excel 3 10-27-2007 08:37 PM
Unable to Open Shared Excel Files Mr Gonz Windows XP Help & Support 0 10-22-2003 09:47 PM
Unable to open database david toub Mac Office 4 10-16-2003 02:34 PM