Thanks again to everyone for the extensive replies on this Thread. 

Alan - your suggestion DOES Sound really easy. But, this M$ Component you
speak of - I understand its Free - but, I need to actually download &
Install it to use it? And, I will have to install it at client on their PC's
as well???

TIA,
-K-

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Alan
Bourke
Sent: Friday, April 26, 2013 11:52 AM
To: [email protected]
Subject: Re: Excel Data Import into VFP w/Multiple Pages

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.





[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/47455352494648FDA80BC24B4AB0807C@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.

Reply via email to