PC Review


Reply
Thread Tools Rate Thread

Data from Access using ADO

 
 
=?Utf-8?B?bWFyaw==?=
Guest
Posts: n/a
 
      15th Jun 2007
Hi,

I am retriving and updating data from an Access database using ADO.
All working fine when I have the Access database open on my machine.
But as soon as I close it down I get the following error:

"
Run-time error '-2147467259 (80004005)':

Cannot open database ". It may not be a database that your application
recognizes, or the file may be corrupt.
"

( I have Microsoft ActiveX Data Objects 2.8 Library tick in my VBAProject
Reference)

Any idea what do I need to be able to have it working without having the
access database open?

Many Thanks

Mark
 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      15th Jun 2007
The db file need not be open to work with ADO.
Post your code.

NickHK

"mark" <(E-Mail Removed)> wrote in message
news:1A60625E-C0EF-4468-9735-(E-Mail Removed)...
> Hi,
>
> I am retriving and updating data from an Access database using ADO.
> All working fine when I have the Access database open on my machine.
> But as soon as I close it down I get the following error:
>
> "
> Run-time error '-2147467259 (80004005)':
>
> Cannot open database ". It may not be a database that your application
> recognizes, or the file may be corrupt.
> "
>
> ( I have Microsoft ActiveX Data Objects 2.8 Library tick in my VBAProject
> Reference)
>
> Any idea what do I need to be able to have it working without having the
> access database open?
>
> Many Thanks
>
> Mark



 
Reply With Quote
 
=?Utf-8?B?bWFyaw==?=
Guest
Posts: n/a
 
      15th Jun 2007
Thanks NickHK,
I just found out that the only thing missing was that I did not setup an
ODBC connection - once setup it is working fine.
Cheers,
Mark

"NickHK" wrote:

> The db file need not be open to work with ADO.
> Post your code.
>
> NickHK
>
> "mark" <(E-Mail Removed)> wrote in message
> news:1A60625E-C0EF-4468-9735-(E-Mail Removed)...
> > Hi,
> >
> > I am retriving and updating data from an Access database using ADO.
> > All working fine when I have the Access database open on my machine.
> > But as soon as I close it down I get the following error:
> >
> > "
> > Run-time error '-2147467259 (80004005)':
> >
> > Cannot open database ". It may not be a database that your application
> > recognizes, or the file may be corrupt.
> > "
> >
> > ( I have Microsoft ActiveX Data Objects 2.8 Library tick in my VBAProject
> > Reference)
> >
> > Any idea what do I need to be able to have it working without having the
> > access database open?
> >
> > Many Thanks
> >
> > Mark

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export Access Data to Excel/Reimport modified data into Access mlloulou Microsoft Access External Data 5 9th Feb 2009 12:09 PM
EXPORT ACCESS DATA AND IMPORT ACCESS DATA Developerme Microsoft Access External Data 3 16th Aug 2008 08:14 PM
The .Net Data OLE DB Provider(System.Data.OleDb) requires Microsoft Data Access Components(MDAC) version 2.6 or later. sanjay prasad Microsoft ADO .NET 1 22nd Sep 2006 01:45 AM
Import Data From Access to Excel - Return Modified Data To Access HVG Microsoft Access External Data 0 9th Dec 2005 08:00 PM
data retrieval through data access pages without access installed =?Utf-8?B?amxhcmNoaWJhbGQ=?= Microsoft Access 0 2nd Dec 2005 11:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:52 PM.