Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy a cursor to a spreadsheet
Message
De
23/03/2007 10:55:55
 
 
À
23/03/2007 07:20:12
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01175581
Message ID:
01207693
Vues:
28
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform