Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Way to Access VFP DB from Excel -- Auto. Srv or ODB
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00135361
Message ID:
00138525
Views:
16
I was just playing with the code you posted. I know this is stupid but could you give an example of the 'do something'? where would I find more info on this?

>Jim
> The most memory efficient method for accessing data from a VFP database into Excel would be to use ADO.
>
>Here's sample code:
>
>Set oConn = CreateObject("ADODB.Connection")
>
>'MYDSN is an ODBC system data source
>oConn.Open "MYDSN","",""
>
>Set oRecs = CreateObject("ADODB.Recordset")
>oRecs.Open "Select * from customer", oConn, 3,3
>Do while not oRecs.Eof
>
> 'do something with the records
>
> ' skip
> oRecs.movenext
>
>Loop
>
>
>Hope this helps.
>
>Rod
Bud Wheeler
Vision Data Solutions, Inc.
Microsoft Partner

http://www.visionpace.com
Http://www.BudWheeler.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform