PC Review


Reply
Thread Tools Rate Thread

ADO compatibility between Excel XP and 2003

 
 
acrobat74
Guest
Posts: n/a
 
      20th Feb 2007

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

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      20th Feb 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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
>



 
Reply With Quote
 
acrobat74
Guest
Posts: n/a
 
      20th Feb 2007
On Feb 20, 3:44 pm, "Bob Phillips" <bob....@somewhere.com> 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" <alex.hatzisa...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
>
>
> > 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 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
excel 2003 files compatibility jrbeems Microsoft Excel Worksheet Functions 2 2nd Nov 2008 06:22 AM
Compatibility error between Excel 2003 and 2003 Roy Microsoft Excel Crashes 1 6th Jun 2008 05:25 PM
Advice - Excel 2003 Compatibility =?Utf-8?B?Y290dGFnZTY=?= Microsoft Excel Misc 2 7th Sep 2007 03:10 PM
Excel 2003 compatibility =?Utf-8?B?QWxhaW4=?= Microsoft Excel Misc 0 23rd Jun 2006 11:02 AM
compatibility between excel 2002 and 2003 =?Utf-8?B?RG91dmlk?= Microsoft Excel Programming 1 27th Jan 2004 02:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:39 AM.