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.





_______________________________________________
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/1366991535.7639.140661223161169.6875f...@webmail.messagingengine.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.

Reply via email to