GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 08-Mar-2005, 07:07
shvalb
 
Posts: n/a
Question

Problem opening .mdb files with CDaoDatabase


Hi.

I try to open .mdb file (MS-ACCESS 2000) with CDaoDatabase object and it fails all the time, here is my code:

CDaoDatabase m_DbConnection;
m_DbConnection.Open(NULL , FALSE, FALSE, "ODBC;DSN=myDB");

I get an error, something about SAMI.

If I convert my .mdb to older version OF MS-ACCESS then I can open it with this
code:

CDaoDatabase m_DbConnection;
m_DbConnection.Open("c:\\myDB.mdb");

but trying to open it with ODBC it fails...any idea how can I overcome this problem??

Thanks.
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking source codes of image, audio and video files onauc C Programming Language 5 26-Feb-2005 22:47
Apache2 config issues monev Apache Web Server Forum 2 28-Jun-2004 07:19
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 03:26
opening files and displaying text pin215 C++ Forum 7 21-Feb-2004 22:27
Opening files with a twist, C++ calculus87 C++ Forum 2 26-Sep-2003 15:41

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 08:11.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.