Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grouping data for excel spreadsheet
Message
 
 
À
19/08/2003 14:55:13
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00821520
Message ID:
00821526
Vues:
15
Try
SELECT case, STR(SUM(VAL(v3))) AS v3, STR(SUM(VAL(v4))) AS v4;
  FROM mytable GROUP BY case ;
  ...
You can use < pre > and < /pre > tags (w/o spaeces) to preserve formatting.

>Is there anyway to group data before sending to an excel spreadsheet. Below is an example of the data and the format that I am trying to send to excel.
>
>.dbf(all fields and variables are characters):
>case	v3	v4
>a	105	
>a		105
>b	225	
>b		225
>
>excel(this would be the format I want to get):
>
>case	v3	v4
>a	105	105
>		
>b	225	225
>		
>
>But this is what I get in excel instead:
>
>case	v3	v4
>a	105	
>a		105
>b	225	
>b		225
>Anyone have any ideas? I have played around with the Select command and have not been successful.
>
>Thanks,
>
>Kimberly
>
>Hope you will able to understand this because when I preview this it changes my format.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform