LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Problems from ADO Ext. 2.6 vs. ADO Ext. 2.5

The most reliable way is to use late binding over early binding. For
example, rather than using a statements like these:-

Dim adoxCatalog As ADOX.Catalog
Set adoxCatalog = New ADOX.Catalog

You'd use:-

Dim oADOXCatalog As Object
Set oADOXCatalog = CreateObject("ADOX.CATALOG")

You'd then convert any symbolic constants to literal constants e.g.

adoRS.Open "SELECT * FROM Table1", adocn, adOpenForwardOnly, adLockReadOnly

to:-

adoRS.Open "SELECT * FROM Table1", adocn, 0, 1

You can check that everything has worked correctly by removing the reference
and compiling your project (Debug, Compile).

Hope this helps,
Daniel
http://www.danielklann.com/excel/excelvba.htm



"Derek Richards" wrote in message
om...
I have a VBA program written in Excel 97 on one machine (machine A)
with a reference pointing to ADO Ext. 2.5 for Security and DDL. The
VBA program was modified on another machine (machine B) also running
Excel 97 but with a reference to ADO Ext. 2.6...instead.

After the modifications on machine B, the reference is no longer ADO
Ext. 2.5 and changed to pointing to ADO Ext. 2.6 now.

When re-running it on machine A, the program gave many errors and the
reference was showing "Missing ADO Ext. 2.6 for Security and DDL".

My question was how to change the settings on either of the machines
to make the program work again on machine A. Is there anyway to
downgrade to ADO Ext. 2.5 for Security and DDL to make it run well on
machine A?

Thanks a lot!



 
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
aauugghhh...#div/o problems & various average formula problems acbel40 Excel Worksheet Functions 5 October 19th 09 05:00 PM
Problems Kay Excel Worksheet Functions 3 May 31st 09 04:36 PM
PROBLEMS PROBLEMS!! HENRIETA Excel Discussion (Misc queries) 0 August 11th 08 07:46 PM
Tab Key problems ESL in Tyler Excel Discussion (Misc queries) 2 March 21st 05 11:01 PM
XML problems kmc Excel Programming 0 October 3rd 03 07:28 PM


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

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"