Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do this?
Message
From
30/12/2003 10:10:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/12/2003 09:54:20
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00862530
Message ID:
00862816
Views:
26
>Hi,
>I have try it, but the result is not what I want
>
>Report generated:
>
>Name    Allowance           Rate/Trip    Services    Rate Sharing
>CKW     Meal                    15.00    ServiceA    10:90
>CKW                                      ServiceB    10:90
>CKW     Transportation          20.00    ServiceA    20:80
>CKW                                      ServiceB    20:80
>
>
>However, What I expect is
>
>Name    Allowance           Rate/Trip    Services    Rate Sharing
>CKW     Meal                    15.00    ServiceA    10:90
>CKW     Transportation          20.00    ServiceB    20:80
>
>
>Any ideas? Is it possible?
>
>Thank you
select Name, Allowance, Rate, Services, RateSharing;
  from MyTable;
  order by ...;
  group by Allowance;
  into cursor TempReport
report form...
This should eliminate the duplicate records. A more or less arbitrary record will be chosen from each group, so you must be sure that fields like "Rate Sharing" have the same values for each record in a group.

For this reason, VFP 7 (?) or later will give you an error message; one way to solve this is to use the command SET ENGINEBEHAVIOR.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform