Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default ADO connection error

I am attempting my first attempt to connect to an Access database using ADO.
When I try to open the connection I get a run-time error -2147467259
(80004005) Could not find installable ISAM.

what the heck does this mean?
I have a book Excel 2003 VBA and followed the code to the T. Am I missin
something?


Sub init()

Dim Connection As ADODB.Connection
Set Connection = New ADODB.Connection
Connection.ConnectionString = ConnectionString

Connection.Open
MsgBox Connection.State = ObjectStateEnum.adStateOpen
Connection.Close


End Sub


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 415
Default ADO connection error

John,
It prettyy much depend on the connection string you are using.
So post the value of ConnectionString.

NickHK

"John T Ingato" . ..
I am attempting my first attempt to connect to an Access database using
ADO. When I try to open the connection I get a run-time error -2147467259
(80004005) Could not find installable ISAM.

what the heck does this mean?
I have a book Excel 2003 VBA and followed the code to the T. Am I missin
something?


Sub init()

Dim Connection As ADODB.Connection
Set Connection = New ADODB.Connection
Connection.ConnectionString = ConnectionString

Connection.Open
MsgBox Connection.State = ObjectStateEnum.adStateOpen
Connection.Close


End Sub




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default ADO connection error

Sorry. Here is the connection string:

Const ConnectionString As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source = C:\Program Files\Microsoft
Office\OFFICE11\SAMPLES\Northwind.mdb;Persist Security = False"


"NickHK" wrote in message
...
John,
It prettyy much depend on the connection string you are using.
So post the value of ConnectionString.

NickHK

"John T Ingato"
. ..
I am attempting my first attempt to connect to an Access database using
ADO. When I try to open the connection I get a run-time error -2147467259
(80004005) Could not find installable ISAM.

what the heck does this mean?
I have a book Excel 2003 VBA and followed the code to the T. Am I missin
something?


Sub init()

Dim Connection As ADODB.Connection
Set Connection = New ADODB.Connection
Connection.ConnectionString = ConnectionString

Connection.Open
MsgBox Connection.State = ObjectStateEnum.adStateOpen
Connection.Close


End Sub






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection error Tiffany Excel Discussion (Misc queries) 0 May 2nd 06 03:53 AM
compile error... ADODB connection ina Excel Programming 2 April 18th 06 05:41 PM
XL - Oracle connection Error parthi4u Excel Discussion (Misc queries) 0 September 14th 05 08:45 PM
XL - Oracle Connection error parthi4u Excel Programming 0 September 8th 05 04:19 PM
DB Connection error JoshPeltier Excel Programming 0 February 12th 04 10:21 PM


All times are GMT +1. The time now is 12:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"