Solved

Working with Access instead of Sql server

Posted on 2001-06-18
4
383 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
  • 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

746 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now