Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE - Table to Excel file?
Message
De
10/09/1998 11:11:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00135005
Message ID:
00135071
Vues:
10
Hi Perry ---

Try this:

SELECT SUM(field2) AS sumf2,SUM(Field3) AS sumf3, (..et al) ;
FROM mytable INTO CURSOR summarytable
INSERT INTO mytable (field2,field3....) VALUES (summarytable.field2,summarytable.field3,...)


>
>One question though. I'm trying to get the sum of each field to append as the last record in the table. Here's what i have:
>
>select xtab
>go bottom
>append blank in xtab nomenu
>for lnCnt = 2 to fCount() && 2nd field is the 1st numeric field
> lcFieldName = field(lnCnt)
> replace &lcFieldname with sum(lcFieldName)
>endfor
>
>should I add the table name lcFieldName = 'myTable.'+Field(lnCnt)??
>
>TIAA
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform