Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to copy a cursor to a spreadsheet
Message
From
23/03/2007 10:55:55
 
 
To
23/03/2007 07:20:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01175581
Message ID:
01207693
Views:
29
That worked well, thank you again for the help.

>After loCon.Open() try:
>
>  loRS = loConn.Execute("select * from "+m.lcTemp)
>  With toSheet
>   FOR ix=1 TO loRS.Fields.Count
>     .Cells(1,m.ix).Value = PROPER(loRs.Fields(m.ix-1).Name)
>   endfor
>   .Range('A2').CopyFromRecordSet( loRS )
>  Endwith
>  loRS.Close
>
Cetin
>
>>Hi Cetin,
>>
>>I'm hoping you can help. I found your post in this thread while I was searching for a similar solution, and it has been working great. Now, though I am using the same approach and getting an error with a certain cursor, and I don't know enough about ADO to find the cause of the problem.
>>
Jim Newsom
IT Director, ICG Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform