On 11/14/2014 12:00 PM, Stephen Russell wrote:
On Fri, Nov 14, 2014 at 12:11 PM, Jeff Johnson <[email protected]> wrote:

So are most of you saying the below parameters should work with 2010?
What about 2013?


On 11/13/2014 1:48 PM, Jeff Johnson wrote:

lnsqlhandle = SQLSTRINGCONNECT("Driver={Microsoft Excel Driver (*.xls,
*.xlsx, *.xlsm, *.xlsb)}; DBQ=" + lcspreadsheet + ";")

I use the above string to connect to Excel files.  It normally does fine
with xls and xlsx.  Today I have a customer that has Office 2010 installed
and it does not work.  It returns a -1 which doesn't tell me much.

Do I need to change the connection string for 2010?


  ----------------

You need to use the right driver on 2010 vs the older one for earlier
versions.

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=
c:\myFolder\myExcel2007file.xlsx;
Extended Properties="Excel 12.0 Xml;HDR=YES";

Okay, the above works fine on my machine. The only thing is, it pops up and asks for a DNS. I select Excel and it works fine. I installed the update on my customer and it popped up asking for a DNS and I couldn't find one on their machine. Where would the above driver be installed on the computer and why does the above command not work? Do I need to install something?



--
Jeff

Jeff Johnson
[email protected]
SanDC, Inc.
(623) 582-0323
SMS (602) 717-5476
Fax 623-869-0675

www.san-dc.com
www.cremationtracker.com
www.agentrelationshipmanager.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.

Reply via email to