Error opening database

R

Rotsey

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top