On 04/08/2014 10:42 AM, Jeff Johnson wrote:
> I am trying to test an application the imports an Excel spreadsheet on
> Windows 8.
So, a Visual FoxPro application, right?
> It won't work because Windows 8 has two ODBC Managers.
All 64-bit Windows systems have two ODBC Managers. That's a good thing
(tm). Otherwise, we 32-bit developers would be left out in the cold.
> The 32 bit manager has all of the drivers in it, but Windows 8 will
> not look for them.
I think you misunderstand the situation. VFP, a 32-bit app, will only
work with 32-bit ODBC drivers. If you have them, you're good.
> There are no Office 2003 drivers in the 64 bit manager.
>
> Do I need to use a different connection string? Has anyone noticed
> that Office 2003 support ends today too?
Considering the level of MS support, I hadn't noticed.
>
> this has been working for me all along:
> lnsqlhandle = SQLSTRINGCONNECT("Driver={Microsoft Excel Driver (*.xls,
> *.xlsx, *.xlsm, *.xlsb)}; DBQ=" + lcspreadsheet + ";")
When you say, "all along," you mean on systems other than this one?
Other than Windows 8? Other than Office 2003?
Do you have access to a command window on this machine? if so, you can
figure out the correct SQLStringConnect for this machine.
lnHandle = SQLCONNECT() # follow the prompts to open an excel file.
? SQLGetProp(lnHandle, "ConnectString")
More on this at: http://fox.wikis.com/wc.dll?Wiki~VFPCommandSQLStringConnect
--
Ted Roche & Associates, LLC http://www.tedroche.com/
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.