Solved

Working with Access instead of Sql server

Posted on 2001-06-18
4
389 Views
Last Modified: 2007-11-27
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
Comment
Question by:kukiya
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 50 total points
ID: 6202129
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
 
LVL 1

Expert Comment

by:randycarpet
ID: 6202143
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
 

Expert Comment

by:amp072397
ID: 6742560
kukiya:

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

thanks!
amp
community support moderator
0
 

Expert Comment

by:amp072397
ID: 6758972
Points to JDettman.
amp
community support moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question