Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default ADO compatibility between Excel XP and 2003


Dear all,

I've built an XL application that resides on the intranet.

In this XL file, I use ADO to manipulate recordsets.

When I execute the application from my PC (XL 2002), everything works
fine.

Another user, however, who was running XL 2003 got the following error
message:

Error code: -2147220999
Error description: Method 'Open' of object '_Connection' failed.

The error occurs when the line of code that is ***HIGHLIGHTED*** tries
to execute:

Dim strCon As String
Dim con As ADODB.Connection
Dim rst As ADODB.Recordset

Set con = New ADODB.Connection

strCon = "Provider=Microsoft.Jet.OLEDB.4.0; " _
& "Data Source=" & strAppAccFullName & ";"

******* con.Open ConnectionString:=strCon ****** ' ERROR HERE

Is this a compatilibilty issue?
As I said, this executes fine with XL 2002.
Also, the connection string of the ADO connection is defined alright
at this stage.

Many thanks,
Alex

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default ADO compatibility between Excel XP and 2003

Did they set a reference to the ActiveX Data Objects library in the VBIDE?

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"acrobat74" wrote in message
oups.com...

Dear all,

I've built an XL application that resides on the intranet.

In this XL file, I use ADO to manipulate recordsets.

When I execute the application from my PC (XL 2002), everything works
fine.

Another user, however, who was running XL 2003 got the following error
message:

Error code: -2147220999
Error description: Method 'Open' of object '_Connection' failed.

The error occurs when the line of code that is ***HIGHLIGHTED*** tries
to execute:

Dim strCon As String
Dim con As ADODB.Connection
Dim rst As ADODB.Recordset

Set con = New ADODB.Connection

strCon = "Provider=Microsoft.Jet.OLEDB.4.0; " _
& "Data Source=" & strAppAccFullName & ";"

******* con.Open ConnectionString:=strCon ****** ' ERROR HERE

Is this a compatilibilty issue?
As I said, this executes fine with XL 2002.
Also, the connection string of the ADO connection is defined alright
at this stage.

Many thanks,
Alex



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default ADO compatibility between Excel XP and 2003

On Feb 20, 3:44 pm, "Bob Phillips" wrote:
Did they set a reference to the ActiveX Data Objects library in the VBIDE?

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"acrobat74" wrote in message

oups.com...





Dear all,


I've built an XL application that resides on the intranet.


In this XL file, I use ADO to manipulate recordsets.


When I execute the application from my PC (XL 2002), everything works
fine.


Another user, however, who was running XL 2003 got the following error
message:


Error code: -2147220999
Error description: Method 'Open' of object '_Connection' failed.


The error occurs when the line of code that is ***HIGHLIGHTED*** tries
to execute:


Dim strCon As String
Dim con As ADODB.Connection
Dim rst As ADODB.Recordset


Set con = New ADODB.Connection


strCon = "Provider=Microsoft.Jet.OLEDB.4.0; " _
& "Data Source=" & strAppAccFullName & ";"


******* con.Open ConnectionString:=strCon ****** ' ERROR HERE


Is this a compatilibilty issue?
As I said, this executes fine with XL 2002.
Also, the connection string of the ADO connection is defined alright
at this stage.


Many thanks,
Alex- Hide quoted text -


- Show quoted text -


Grrr...damn it :-)
This guy had his PC reset, so I guess the ADO references were lost.
Thanks for reminding me!

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
Excel 2003 compatibility issue news4naeem Excel Discussion (Misc queries) 0 January 15th 10 06:06 AM
Excel 2007 -- 2003 Compatibility dgold82 Excel Discussion (Misc queries) 2 June 30th 09 08:10 PM
Advice - Excel 2003 Compatibility cottage6 Excel Discussion (Misc queries) 2 September 7th 07 03:10 PM
Excel 2003 compatibility Alain Excel Discussion (Misc queries) 0 June 23rd 06 11:02 AM
Problem with VBA compatibility - Excel 2003 Frank Krogh Excel Programming 0 June 2nd 04 02:12 PM


All times are GMT +1. The time now is 07:01 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"