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
---
_______________________________________________
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/cajidmy+gqyhbwfz18veocmlsyttzfdyi2r5p9fuuqgfr67o...@mail.gmail.com
** 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.