Ah - so this is ADO?! -K-
-----Original Message----- From: ProfoxTech [mailto:[email protected]] On Behalf Of Stephen Russell Sent: Friday, April 26, 2013 12:02 PM On Fri, Apr 26, 2013 at 10:52 AM, Alan Bourke <[email protected]>wrote: > The way I tend to do this these days is the Office Data Connectivity > Components (free Microsoft component). Handles all types of Excel files > via OLE DB: > > This.SQLHandle = SqlStringConnect("Driver={Microsoft > Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};" ; > +"DBQ=" + > > FullPath(lcFile)+";") > > ... where lcFile is your Excel workbook. then: > > lcSelect=[SELECT > Date,Account,Name,Ref1,Value,Lodgement FROM > "Sheet1$"] > lnResult = SQLEXEC(This.SQLHandle, lcSelect, > "_stage1_") > > That gets you a cursor called '_stage1_' with the contents of Sheet 1 in > the workbook. > > Don't really see any easier options to be honest. > ------------------ > Yeah what I said. :) -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] _______________________________________________ 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/F4FA7C0696C94C9A9D8CDFC3918ED2A8@Programming2 ** 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.

