[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

Working with Access instead of Sql server

Hi,

I have a problem.
I built an MFC application that connects to SQL Server 7.0 database via ODBC.
This MFC program uses the SQL language.

Now I want to change the database , and to work with Access.
So I created a new access database, and imported the information from the Sql Server database to the
new access DB.

I also changed the ODBC driver configuration to the access driver.

The problem is when I run my MFC program, an error accurs while I'm trying to open the DB tables.
The error discription is as following:
"Could not find file 'D:\MyDb\dbo.mdb'".

('D:\MyDb' is the path of the working directory).

I don't know what is that error means, what is the odb.mdb file ???

I will appreciate your help very much !!!!!




0
kukiya
Asked:
kukiya
  • 2
1 Solution
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
Tables in Access can be local (within the MDB file with your code) or linked (are in another MDB).

With linked tables, Access stores the path to the MDB file containing the table in the tableDefs Connect property.

You can use code or the linked table manager to change this.

Your trying to open the table and Access is saying that it cannot find the MDB that contains the table.

HTH,
Jim.
0
 
randycarpetCommented:
I don't understand your question.

Is dbo.mdb (or odb.mdb as you refer to later) your Access 97 database?

What is your connection string?


RC
0
 
amp072397Commented:
kukiya:

You've logged in recently. Kindly return to and address this question.

thanks!
amp
community support moderator
0
 
amp072397Commented:
Points to JDettman.
amp
community support moderator
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now