Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2013, 09:46 AM
ArviL ArviL is offline ODBC Excel Driver Login Failed Windows 7 64bit ODBC Excel Driver Login Failed Office 2007
Novice
ODBC Excel Driver Login Failed
 
Join Date: Feb 2013
Posts: 11
ArviL is on a distinguished road
Default ODBC Excel Driver Login Failed


Hi

OS: Windows 7 64bit; Office 2007; Used Excel file type: *.xls (must be compatible with Office2000 and with Office2007)

I have an application where some data are entered into Excel worksheet (p.e. InputSheet). On sheet InputSheet, a nondynamic name p.e. MyData=InputSheet!$A$1:$X$10000 is defined. On another sheet, p.e. ReportSheet, I use an ODBC query with named range MyData as source to display certain data from InputSheet.

I have designed applications like this before, when I had Windows XP 32bit as OS and Office2000, and they worked perfectly.

So on ReportSheet, I select from menu Data>From Other Sources>From Microsoft Query>Excel Files* ..., and create a query. It works a treat, so long as the Excel session lasts.

After I close the Excel, and then open my Excel app anew, the error message is displayed whenever I try to refresh the query:
ODBC Excel Driver Login Failed
Unrecognized database format
'Mypath\Myfile.xls'

When I open ODBC Data Source Administrator, then on User DSN tab a data source is displayed:
Excel Files, Microsoft Excel Driver (*.xls,*.xlsx, *.xlsm,*.xlsb)

When I try to configure it, at first an error message is displayed:
The Setup routines for Microsoft Excel Driver (*.xls,*.xlsx, *.xlsm,*.xlsb) ODBC driver could not be found. Please reinstall the driver.

And after tha another one:
The specified DSN contains an architecture mismatch between the Deiver and Application

But the strangest thing is, that when I now return to my app, the query works again - until I close the Excel session. Only this will hardly be an acceptable working solution :-)


Any bright ideas?
Thanks in advance!


Arvi Laanemets
Reply With Quote
  #2  
Old 02-28-2013, 12:46 AM
ArviL ArviL is offline ODBC Excel Driver Login Failed Windows 7 64bit ODBC Excel Driver Login Failed Office 2007
Novice
ODBC Excel Driver Login Failed
 
Join Date: Feb 2013
Posts: 11
ArviL is on a distinguished road
Default

Btw, to get the query refreshing again, there is no need to start the ODBC Administrator at all - it will be enough to click p.e. on Windows Start button, and then to activate the excel workbook again.

But though the query will refresh, when I try to edit it (Connections_Properties>Edit Query ...), an "Unrecogized database format" error is returned anyway.
Reply With Quote
  #3  
Old 03-01-2013, 01:36 AM
macropod's Avatar
macropod macropod is offline ODBC Excel Driver Login Failed Windows 7 64bit ODBC Excel Driver Login Failed Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

A couple of possibilities incl;ude the use of wrong drivers:
http://www.microsoft.com/en-us/downl....aspx?id=23734 (though there doesn't appear to be a 64-bit version fo Office 2007). If you need 64-bit support, try the 2010 version:
http://www.microsoft.com/en-us/downl....aspx?id=13255
See also:
http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 03-01-2013, 03:00 AM
ArviL ArviL is offline ODBC Excel Driver Login Failed Windows 7 64bit ODBC Excel Driver Login Failed Office 2007
Novice
ODBC Excel Driver Login Failed
 
Join Date: Feb 2013
Posts: 11
ArviL is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
OK, it looks like I got the reason I have problem from here.
"
If you use the 64-bit odbcad32.exe to configure or remove a DSN that connects to a 32-bit driver, for example, Driver do Microsoft Access (*.mdb), you will receive the following error message:



The specified DSN contains an architecture mismatch between the Driver and Application



To resolve this error, use the 32-bit odbcad32.exe to configure or remove the DSN."

But the DSN used for queries from Excel files isn't user-defined! It was installed by MS Office Installer! So MS Office Installer didn't check, is there 32-bit or 64-bit OS? And no update or SP didn't correct this either?

The problem isn't that the query doesn't work properly in my computer - I can cope with this. But there are somewhat 200+ MS Office users in our plants all over 4 European countries, and any of them my need to use some of workbooks I have designed. When I go to bosses, and say: "Khm...! We have to employ some guy who will manage all those ODBC datasources!", then I hardly can expect some positive response :-)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
ODBC Excel Driver Login Failed Initial Outlook setup failed-Please help! seanm2011 Outlook 2 06-18-2012 11:02 PM
Outlook address book & ODBC dhaven Outlook 0 12-19-2011 11:26 AM
Database exception: login failed rkoziol7 Outlook 0 05-23-2011 01:07 AM
DDE, OLE DB, or ODBC? timorrill Mail Merge 0 01-21-2009 01:42 PM
Phone call through TAPI driver drdebate Outlook 0 04-09-2007 01:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft