Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / June 2007

Tip: Looking for answers? Try searching our database.

Error opening database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rotsey - 30 Jun 2007 10:59 GMT
Hi,

I am have PC with Access 97 and 2003 installed.
The mdb extension is et to 97.

I am opening a 2003 mdb via a win form written in vb.

the database opens and the tries instantiate a
DAO global database object.

A reference to DAO 3.51 exists.

But on the OpenDatabase of the following code I
get a "unjrecognized database format" error.

I think it has to with 97 but don't know why.

rotsey

Global gobjWSjet As DAO.Workspace                   '--Jet workspace object
Global gobjDBjet As DAO.Database                '--Jet database object

   Set gobjWSjet = CreateWorkspace("", "admin", "", dbUseJet)
   Set gobjDBjet = gobjWSjet.OpenDatabase(CurrentDb.Name, False)
Douglas J. Steele - 30 Jun 2007 13:06 GMT
You need to use DAO 3.6 for databases created using Access 2003.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> Hi,
>
[quoted text clipped - 21 lines]
>    Set gobjWSjet = CreateWorkspace("", "admin", "", dbUseJet)
>    Set gobjDBjet = gobjWSjet.OpenDatabase(CurrentDb.Name, False)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.